Replace 'Change Dimensions' button with tool button

This commit is contained in:
GriffinR
2026-03-26 13:59:12 -04:00
parent 8e672b4f58
commit b9dd7637a6
7 changed files with 64 additions and 45 deletions

View File

@@ -527,6 +527,20 @@
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="toolButton_Resize">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Resize&lt;br/&gt;&lt;br/&gt;Opens an interactive window for resizing the current map layout (and the border, if enabled in Project Settings).&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>...</string>
</property>
<property name="icon">
<iconset resource="../resources/images.qrc">
<normaloff>:/icons/resize.ico</normaloff>:/icons/resize.ico</iconset>
</property>
</widget>
</item>
</layout>
</widget>
</item>
@@ -563,16 +577,6 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_ChangeDimensions">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Change a map layout's width and height.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Change Dimensions</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer1">
<property name="orientation">
@@ -1699,7 +1703,7 @@
<x>0</x>
<y>0</y>
<width>100</width>
<height>16</height>
<height>30</height>
</rect>
</property>
<property name="sizePolicy">
@@ -1793,7 +1797,7 @@
<x>0</x>
<y>0</y>
<width>100</width>
<height>16</height>
<height>30</height>
</rect>
</property>
<property name="sizePolicy">
@@ -1887,7 +1891,7 @@
<x>0</x>
<y>0</y>
<width>100</width>
<height>16</height>
<height>30</height>
</rect>
</property>
<property name="sizePolicy">
@@ -1987,7 +1991,7 @@
<x>0</x>
<y>0</y>
<width>100</width>
<height>16</height>
<height>30</height>
</rect>
</property>
<property name="sizePolicy">
@@ -2081,7 +2085,7 @@
<x>0</x>
<y>0</y>
<width>100</width>
<height>16</height>
<height>30</height>
</rect>
</property>
<property name="sizePolicy">
@@ -2237,8 +2241,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>72</width>
<height>20</height>
<width>100</width>
<height>30</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_21">
@@ -2642,8 +2646,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>204</width>
<height>16</height>
<width>100</width>
<height>30</height>
</rect>
</property>
<layout class="QVBoxLayout" name="layout_ConnectionsList">
@@ -2865,6 +2869,10 @@
<property name="title">
<string>Edit</string>
</property>
<addaction name="actionCopy"/>
<addaction name="actionPaste"/>
<addaction name="separator"/>
<addaction name="actionChange_Map_Dimensions"/>
</widget>
<widget class="QMenu" name="menuView">
<property name="title">
@@ -3262,6 +3270,27 @@
<string>Open Manual</string>
</property>
</action>
<action name="actionCopy">
<property name="text">
<string>Copy</string>
</property>
<property name="shortcut">
<string>Ctrl+C</string>
</property>
</action>
<action name="actionPaste">
<property name="text">
<string>Paste</string>
</property>
<property name="shortcut">
<string>Ctrl+V</string>
</property>
</action>
<action name="actionChange_Map_Dimensions">
<property name="text">
<string>Change Map Dimensions...</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>