Add select all

Tue, 28 Jun 2022 21:38:32 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Tue, 28 Jun 2022 21:38:32 +0300
changeset 303
f4383ac6e21e
parent 302
d59cb01d8031
child 304
5d280bceb713

Add select all

src/mainwindow.ui file | annotate | diff | comparison | revisions
--- a/src/mainwindow.ui	Tue Jun 28 19:57:45 2022 +0300
+++ b/src/mainwindow.ui	Tue Jun 28 21:38:32 2022 +0300
@@ -88,6 +88,8 @@
     <property name="title">
      <string>Edit</string>
     </property>
+    <addaction name="actionSelectAll"/>
+    <addaction name="separator"/>
     <addaction name="actionInvert"/>
     <addaction name="actionDelete"/>
     <addaction name="separator"/>
@@ -503,9 +505,18 @@
     <string>Cascade subwindows</string>
    </property>
   </action>
+  <action name="actionSelectAll">
+   <property name="text">
+    <string>Select all</string>
+   </property>
+   <property name="shortcut">
+    <string>Ctrl+A</string>
+   </property>
+  </action>
  </widget>
  <resources>
   <include location="../resources.qrc"/>
+  <include location="../resources.qrc"/>
  </resources>
  <connections>
   <connection>
@@ -540,5 +551,21 @@
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>actionSelectAll</sender>
+   <signal>triggered()</signal>
+   <receiver>modelListView</receiver>
+   <slot>selectAll()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>589</x>
+     <y>216</y>
+    </hint>
+   </hints>
+  </connection>
  </connections>
 </ui>

mercurial