Skip to content

Commit

Permalink
ui: put Remove+Add buttons in QHBoxLayout
Browse files Browse the repository at this point in the history
...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.
  • Loading branch information
johanmalm committed Jul 16, 2024
1 parent 3efed6e commit 1da2bc3
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions src/maindialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -230,24 +230,35 @@
<item row="0" column="1">
<layout class="QVBoxLayout" name="multiKeyboardLayout">
<item>
<widget class="QListView" name="layoutView"/>
<widget class="QListView" name="layoutView">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>72</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="layoutCombo"/>
</item>
<item>
<widget class="QPushButton" name="layoutAdd">
<property name="text">
<string>Add</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="layoutRemove">
<property name="text">
<string>Remove</string>
</property>
</widget>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QPushButton" name="layoutAdd">
<property name="text">
<string>Add</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="layoutRemove">
<property name="text">
<string>Remove</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer">
Expand Down

0 comments on commit 1da2bc3

Please sign in to comment.