Skip to content

Commit

Permalink
Maps: Enforce minimum size of 20x15
Browse files Browse the repository at this point in the history
The map properties windows uses now a map minimum width of 20 tiles
and a map minimum height of 15 tiles.
  • Loading branch information
rueter37 committed Nov 30, 2021
1 parent eb03cfb commit 670711b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/ui/maptree/map_properties_dialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,18 @@
</property>
<layout class="QHBoxLayout" name="layoutDimensions">
<item>
<widget class="QSpinBox" name="spinWidth"/>
<widget class="QSpinBox" name="spinWidth">
<property name="minimum">
<number>20</number>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinHeight"/>
<widget class="QSpinBox" name="spinHeight">
<property name="minimum">
<number>15</number>
</property>
</widget>
</item>
</layout>
</widget>
Expand Down

0 comments on commit 670711b

Please sign in to comment.