From 121a30ccef3b6306c1da4f415fe1305dbf2dd901 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 13 Apr 2017 12:25:47 +0200 Subject: QPlatformSystemTrayIcon: Add signal contextMenuRequested() Add a signal passing the global position of the context menu. For platforms that do not provide native menus, QSystemTrayIcon will show a QMenu based menu. Change-Id: I799e4a84ca38e00ea33f3c842ea4ca43ecb8c83f Reviewed-by: J-P Nurmi Reviewed-by: Maurice Kalinowski Reviewed-by: Joerg Bornemann --- src/gui/kernel/qplatformsystemtrayicon.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/kernel/qplatformsystemtrayicon.h') diff --git a/src/gui/kernel/qplatformsystemtrayicon.h b/src/gui/kernel/qplatformsystemtrayicon.h index c52dbfbd78..948a6c099d 100644 --- a/src/gui/kernel/qplatformsystemtrayicon.h +++ b/src/gui/kernel/qplatformsystemtrayicon.h @@ -49,6 +49,7 @@ QT_BEGIN_NAMESPACE class QPlatformMenu; +class QPlatformScreen; class QIcon; class QString; class QRect; @@ -88,6 +89,7 @@ public: Q_SIGNALS: void activated(QPlatformSystemTrayIcon::ActivationReason reason); + void contextMenuRequested(QPoint globalPos, const QPlatformScreen *screen); void messageClicked(); }; -- cgit v1.2.3