# HG changeset patch # User Teemu Piippo <teemu.s.piippo@gmail.com> # Date 1656415440 -10800 # Node ID 169b30f282bd5354239f1e09f4f336daeeba3cd0 # Parent 59562d8f837216d51bf90e36361ea7c050e4c7e8 Add tile and cascade subwindows actions diff -r 59562d8f8372 -r 169b30f282bd src/mainwindow.ui --- 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>