qt6-bb10/src/platformsupport/dbustray
Shawn Rutledge be242ed094 D-Bus system tray: emit activated on middle and right click
The ActivationReason provides the type of click.  If the icon has a
D-Bus menu, then QStatusNotifierItemAdaptor::ContextMenu will not be
called: the tray is responsible for opening the context menu.  But
an application can alternatively do something different with a
right-click by not providing a menu, and instead handling the
QSystemTrayIcon::activated signal with the Context reason.
Simplified the code by emitting the signal directly in
QStatusNotifierItemAdaptor.

Task-number: QTBUG-44929
Change-Id: Ia062a9a2fd99554418d58a1ff6ecd4e862035198
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
2015-03-31 06:14:53 +00:00
..
dbustray.pri QSystemTrayIcon uses D-Bus org.freedesktop.Notifications on Linux 2015-01-23 05:34:00 +01:00
qdbustrayicon.cpp D-Bus system tray: emit activated on middle and right click 2015-03-31 06:14:53 +00:00
qdbustrayicon_p.h D-Bus system tray: emit activated on middle and right click 2015-03-31 06:14:53 +00:00
qdbustraytypes.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
qdbustraytypes_p.h Update copyright headers 2015-02-11 06:49:51 +00:00
qstatusnotifieritemadaptor.cpp D-Bus system tray: emit activated on middle and right click 2015-03-31 06:14:53 +00:00
qstatusnotifieritemadaptor_p.h Update copyright headers 2015-02-11 06:49:51 +00:00
qxdgnotificationproxy.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
qxdgnotificationproxy_p.h Update copyright headers 2015-02-11 06:49:51 +00:00