diff options
author | Serge Lysenko <sergii.lysenko@avid.com> | 2015-10-20 19:21:42 +0300 |
---|---|---|
committer | Serge Lysenko <lserge@auster.in.ua> | 2016-09-07 17:56:28 +0000 |
commit | e8892c7e7a0bdebca9ff491a9446c0b4192fe7fd (patch) | |
tree | 759c8c11344b9388b7d2274f24149cefdf8a3cd6 /src/widgets/util/qsystemtrayicon_x11.cpp | |
parent | 39a2eed039f8cb335f72caaf3b35d5e6832c2c5b (diff) |
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_x11.cpp')
-rw-r--r-- | src/widgets/util/qsystemtrayicon_x11.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/util/qsystemtrayicon_x11.cpp b/src/widgets/util/qsystemtrayicon_x11.cpp index ea0604b6ed..db5269201c 100644 --- a/src/widgets/util/qsystemtrayicon_x11.cpp +++ b/src/widgets/util/qsystemtrayicon_x11.cpp @@ -357,10 +357,10 @@ bool QSystemTrayIconPrivate::supportsMessages_sys() } void QSystemTrayIconPrivate::showMessage_sys(const QString &title, const QString &message, - QSystemTrayIcon::MessageIcon icon, int msecs) + const QIcon &icon, QSystemTrayIcon::MessageIcon msgIcon, int msecs) { if (qpa_sys) { - showMessage_sys_qpa(title, message, icon, msecs); + showMessage_sys_qpa(title, message, icon, msgIcon, msecs); return; } if (!sys) |