diff options
author | miniak <milan.burda@gmail.com> | 2010-06-11 12:54:19 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-06-11 12:54:19 (GMT) |
commit | 936fc54e313cfe8923ba94738e52a92adcf6ccf0 (patch) | |
tree | 2417a15e6c53d488f6bc4aff7ad811358ffa9887 /src/gui/util/qsystemtrayicon_x11.cpp | |
parent | d36e728d35f9b83710b4d88c719fbe64bbe58c1b (diff) | |
download | Qt-936fc54e313cfe8923ba94738e52a92adcf6ccf0.zip Qt-936fc54e313cfe8923ba94738e52a92adcf6ccf0.tar.gz Qt-936fc54e313cfe8923ba94738e52a92adcf6ccf0.tar.bz2 |
Fix QSystemTrayIcon::supportsMessages() on Windows
Add QSystemTrayIconPrivate::supportsMessages_sys() method
Report support for balloon messages only when they are actually allowed ("EnableBalloonTips" registry value)
Merge-request: 2355
Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
Diffstat (limited to 'src/gui/util/qsystemtrayicon_x11.cpp')
-rw-r--r-- | src/gui/util/qsystemtrayicon_x11.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/util/qsystemtrayicon_x11.cpp b/src/gui/util/qsystemtrayicon_x11.cpp index 82b4325..59fdc07 100644 --- a/src/gui/util/qsystemtrayicon_x11.cpp +++ b/src/gui/util/qsystemtrayicon_x11.cpp @@ -381,6 +381,11 @@ bool QSystemTrayIconPrivate::isSystemTrayAvailable_sys() return QSystemTrayIconSys::locateSystemTray() != XNone; } +bool QSystemTrayIconPrivate::supportsMessages_sys() +{ + return true; +} + void QSystemTrayIconPrivate::showMessage_sys(const QString &message, const QString &title, QSystemTrayIcon::MessageIcon icon, int msecs) { |