Adjust about dialog and make text selectable

This commit is contained in:
Jonas Kvinge 2019-01-09 22:06:15 +01:00
parent 87c2007352
commit 970dcaf0fd
2 changed files with 21 additions and 5 deletions

View File

@ -88,6 +88,8 @@ About::About(QWidget *parent):QDialog(parent) {
ui_.label_text->setText(MainHtml());
ui_.text_constributors->setText(ContributorsHtml());
ui_.text_constributors->updateGeometry();
updateGeometry();
ui_.buttonBox->button(QDialogButtonBox::Close)->setShortcut(QKeySequence::Close);

View File

@ -2,6 +2,14 @@
<ui version="4.0">
<class>About</class>
<widget class="QDialog" name="About">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>600</width>
<height>700</height>
</rect>
</property>
<property name="maximumSize">
<size>
<width>600</width>
@ -105,10 +113,19 @@
<property name="openExternalLinks">
<bool>true</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
<item>
<widget class="QTextBrowser" name="text_constributors">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
@ -119,11 +136,8 @@
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
</spacer>
</item>