summaryrefslogtreecommitdiffstats
path: root/src/gui/util/qsystemtrayicon.cpp
diff options
context:
space:
mode:
authorminiak <milan.burda@gmail.com>2010-06-11 12:54:19 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2010-06-11 12:54:19 (GMT)
commit936fc54e313cfe8923ba94738e52a92adcf6ccf0 (patch)
tree2417a15e6c53d488f6bc4aff7ad811358ffa9887 /src/gui/util/qsystemtrayicon.cpp
parentd36e728d35f9b83710b4d88c719fbe64bbe58c1b (diff)
downloadQt-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.cpp')
-rw-r--r--src/gui/util/qsystemtrayicon.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/util/qsystemtrayicon.cpp b/src/gui/util/qsystemtrayicon.cpp
index d7dde87..941961b 100644
--- a/src/gui/util/qsystemtrayicon.cpp
+++ b/src/gui/util/qsystemtrayicon.cpp
@@ -356,10 +356,7 @@ bool QSystemTrayIcon::isSystemTrayAvailable()
*/
bool QSystemTrayIcon::supportsMessages()
{
-#if defined(Q_WS_QWS)
- return false;
-#endif
- return true;
+ return QSystemTrayIconPrivate::supportsMessages_sys();
}
/*!