diff options
author | Frédéric Brière <fbriere@fbriere.net> | 2019-06-30 17:00:34 -0400 |
---|---|---|
committer | Frédéric Brière <fbriere@fbriere.net> | 2019-06-30 21:49:56 -0400 |
commit | 3377008db04ac8d7e4928b7abfbe84a4c694d6b8 (patch) | |
tree | 27ee081313b1ba5f169403c6136cd4e39f1a8f52 /src/gui/mphoneform.ui | |
parent | d358a52e6124b528fb0bc09eaf4d28c8215e07e7 (diff) | |
download | twinkle-3377008db04ac8d7e4928b7abfbe84a4c694d6b8.tar twinkle-3377008db04ac8d7e4928b7abfbe84a4c694d6b8.tar.gz twinkle-3377008db04ac8d7e4928b7abfbe84a4c694d6b8.tar.lz twinkle-3377008db04ac8d7e4928b7abfbe84a4c694d6b8.tar.xz twinkle-3377008db04ac8d7e4928b7abfbe84a4c694d6b8.zip |
Add a "Show/Hide window" entry to the systray icon menu
It's customary for applications embedding themselves in the system tray
to offer a "Show/Hide window" menu entry on right-click, even for those
applications which offer the same functionality via a single left-click.
(Thanks to qBittorrent for the idea of using QMenu::aboutToShow to
update the label of this menu entry.)
Diffstat (limited to 'src/gui/mphoneform.ui')
-rw-r--r-- | src/gui/mphoneform.ui | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/mphoneform.ui b/src/gui/mphoneform.ui index 196b098..8857394 100644 --- a/src/gui/mphoneform.ui +++ b/src/gui/mphoneform.ui @@ -1822,6 +1822,11 @@ <cstring>actgrActivateLine</cstring> </property> </actiongroup> + <action name="toggleWindowAction"> + <property name="text"> + <string>Toggle window visibility</string> + </property> + </action> </widget> <layoutdefault spacing="6" margin="11"/> <tabstops> @@ -2503,6 +2508,12 @@ </hint> </hints> </connection> + <connection> + <sender>toggleWindowAction</sender> + <signal>triggered()</signal> + <receiver>MphoneForm</receiver> + <slot>toggleWindow()</slot> + </connection> </connections> <slots> <slot>doMessageBuddy(QTreeWidgetItem*)</slot> |