Skip to content

Commit 1da2bc3

Browse files
committed
ui: put Remove+Add buttons in QHBoxLayout
...and limit keyboard-layout QListView to height=72 as most users are likely to only use 1-3, and if they use more they can just scroll.
1 parent 3efed6e commit 1da2bc3

File tree

1 file changed

+24
-13
lines changed

1 file changed

+24
-13
lines changed

src/maindialog.ui

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -230,24 +230,35 @@
230230
<item row="0" column="1">
231231
<layout class="QVBoxLayout" name="multiKeyboardLayout">
232232
<item>
233-
<widget class="QListView" name="layoutView"/>
233+
<widget class="QListView" name="layoutView">
234+
<property name="maximumSize">
235+
<size>
236+
<width>16777215</width>
237+
<height>72</height>
238+
</size>
239+
</property>
240+
</widget>
234241
</item>
235242
<item>
236243
<widget class="QComboBox" name="layoutCombo"/>
237244
</item>
238245
<item>
239-
<widget class="QPushButton" name="layoutAdd">
240-
<property name="text">
241-
<string>Add</string>
242-
</property>
243-
</widget>
244-
</item>
245-
<item>
246-
<widget class="QPushButton" name="layoutRemove">
247-
<property name="text">
248-
<string>Remove</string>
249-
</property>
250-
</widget>
246+
<layout class="QHBoxLayout" name="horizontalLayout_2">
247+
<item>
248+
<widget class="QPushButton" name="layoutAdd">
249+
<property name="text">
250+
<string>Add</string>
251+
</property>
252+
</widget>
253+
</item>
254+
<item>
255+
<widget class="QPushButton" name="layoutRemove">
256+
<property name="text">
257+
<string>Remove</string>
258+
</property>
259+
</widget>
260+
</item>
261+
</layout>
251262
</item>
252263
<item>
253264
<spacer name="verticalSpacer">

0 commit comments

Comments
 (0)