Skip to content

Commit

Permalink
querydialog.ui: Allow smaller dialog size
Browse files Browse the repository at this point in the history
As the query label is determined by the remote server, it can be
arbitrarily long. Therefore, it makes sense to enable word wrap so
the dialog still fits on devices with smaller screens, such as mobile
phones.
  • Loading branch information
XaviDCR92 authored and ikskuh committed Dec 19, 2023
1 parent b2fac23 commit 91cfe52
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/widgets/querydialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,27 @@
<height>240</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<property name="sizeGripEnabled">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="query">
<property name="text">
<string/>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
Expand Down

0 comments on commit 91cfe52

Please sign in to comment.