summaryrefslogtreecommitdiff
path: root/src/widgets/util/qsystemtrayicon.h
diff options
context:
space:
mode:
authorSerge Lysenko <sergii.lysenko@avid.com>2015-10-20 19:21:42 +0300
committerSerge Lysenko <lserge@auster.in.ua>2016-09-07 17:56:28 +0000
commite8892c7e7a0bdebca9ff491a9446c0b4192fe7fd (patch)
tree759c8c11344b9388b7d2274f24149cefdf8a3cd6 /src/widgets/util/qsystemtrayicon.h
parent39a2eed039f8cb335f72caaf3b35d5e6832c2c5b (diff)
downloadqtbase-e8892c7e7a0bdebca9ff491a9446c0b4192fe7fd.tar.gz
Support large custom icons for the system tray balloon notification
Modern platforms such as macOS and Windows support large fancy icons in the system balloon notification. We just need to pass the icon into platform plugin. [ChangeLog][QtWidgets][QSystemTrayIcon] Support custom icons in showMessage() Task-number: QTBUG-49283 Change-Id: Iaeca36fe1bf350eae34d105549010ecbedf9c0a1 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/widgets/util/qsystemtrayicon.h')
-rw-r--r--src/widgets/util/qsystemtrayicon.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/util/qsystemtrayicon.h b/src/widgets/util/qsystemtrayicon.h
index fb238c92b0..918dd0478e 100644
--- a/src/widgets/util/qsystemtrayicon.h
+++ b/src/widgets/util/qsystemtrayicon.h
@@ -101,6 +101,7 @@ public Q_SLOTS:
void setVisible(bool visible);
inline void show() { setVisible(true); }
inline void hide() { setVisible(false); }
+ void showMessage(const QString &title, const QString &msg, const QIcon &icon, int msecs = 10000);
void showMessage(const QString &title, const QString &msg,
QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::Information, int msecs = 10000);