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> |
||
|---|---|---|
| .. | ||
| dbustray.pri | ||
| qdbustrayicon.cpp | ||
| qdbustrayicon_p.h | ||
| qdbustraytypes.cpp | ||
| qdbustraytypes_p.h | ||
| qstatusnotifieritemadaptor.cpp | ||
| qstatusnotifieritemadaptor_p.h | ||
| qxdgnotificationproxy.cpp | ||
| qxdgnotificationproxy_p.h | ||