Add tile and cascade subwindows actions

Tue, 28 Jun 2022 14:24:00 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Tue, 28 Jun 2022 14:24:00 +0300
changeset 288
169b30f282bd
parent 287
59562d8f8372
child 289
a0ddbc9a4e77

Add tile and cascade subwindows actions

src/mainwindow.ui file | annotate | diff | comparison | revisions
--- a/src/mainwindow.ui	Tue Jun 28 14:20:08 2022 +0300
+++ b/src/mainwindow.ui	Tue Jun 28 14:24:00 2022 +0300
@@ -80,6 +80,9 @@
     <addaction name="separator"/>
     <addaction name="actionAdjustGridToView"/>
     <addaction name="actionDrawAxes"/>
+    <addaction name="separator"/>
+    <addaction name="actionTileSubWindows"/>
+    <addaction name="actionCascadeSubWindows"/>
    </widget>
    <widget class="QMenu" name="menuEdit">
     <property name="title">
@@ -490,9 +493,52 @@
     <string>About %1</string>
    </property>
   </action>
+  <action name="actionTileSubWindows">
+   <property name="text">
+    <string>Tile subwindows</string>
+   </property>
+  </action>
+  <action name="actionCascadeSubWindows">
+   <property name="text">
+    <string>Cascade subwindows</string>
+   </property>
+  </action>
  </widget>
  <resources>
   <include location="../resources.qrc"/>
  </resources>
- <connections/>
+ <connections>
+  <connection>
+   <sender>actionTileSubWindows</sender>
+   <signal>triggered()</signal>
+   <receiver>mdiArea</receiver>
+   <slot>tileSubWindows()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>231</x>
+     <y>202</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>actionCascadeSubWindows</sender>
+   <signal>triggered()</signal>
+   <receiver>mdiArea</receiver>
+   <slot>cascadeSubWindows()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>231</x>
+     <y>202</y>
+    </hint>
+   </hints>
+  </connection>
+ </connections>
 </ui>

mercurial