Skip to content

Commit

Permalink
Allow multiple selection in the city screen unit lists
Browse files Browse the repository at this point in the history
It allows for much faster operation than dealing with each unit individually
(for instance, upgrading all units of a certain type). Multiple selection uses
the OS' standard shortcuts and also accepts dragging the mouse over multiple
units to select them all.

Closes #805.
  • Loading branch information
lmoureaux authored and jwrober committed Aug 7, 2022
1 parent bd27df2 commit dfd9d38
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions client/citydlg.ui
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@
<x>0</x>
<y>0</y>
<width>16</width>
<height>90</height>
<height>83</height>
</rect>
</property>
<property name="sizePolicy">
Expand Down Expand Up @@ -567,6 +567,9 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="flow">
<enum>QListView::LeftToRight</enum>
</property>
Expand Down Expand Up @@ -644,8 +647,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>194</width>
<height>197</height>
<width>139</width>
<height>150</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout_2">
Expand Down Expand Up @@ -822,6 +825,9 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="flow">
<enum>QListView::LeftToRight</enum>
</property>
Expand Down

0 comments on commit dfd9d38

Please sign in to comment.