diff options
author | Montel Laurent <laurent.montel@kdab.com> | 2012-12-06 14:54:01 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-06 18:40:29 +0100 |
commit | 51e7aeb29bc804b904656083d4317c8239c6f8b0 (patch) | |
tree | d16765bfadac4ae2d5db56294bef3ad04bd3e24e /examples/widgets/desktop/systray/window.cpp | |
parent | ce556dfcbc9eeb8d993fa8ce9c9fac6cfb71d2be (diff) |
Fix compile with -DQT_NO_SYSTEMTRAYICON
Change-Id: Icca0bef7efca77a841b30f40692144663e7ae913
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'examples/widgets/desktop/systray/window.cpp')
-rw-r--r-- | examples/widgets/desktop/systray/window.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/widgets/desktop/systray/window.cpp b/examples/widgets/desktop/systray/window.cpp index 8de1f5843e..a7ea3b471e 100644 --- a/examples/widgets/desktop/systray/window.cpp +++ b/examples/widgets/desktop/systray/window.cpp @@ -39,6 +39,9 @@ ****************************************************************************/ #include "window.h" + +#ifndef QT_NO_SYSTEMTRAYICON + #include <QtGui> #include <QAction> @@ -265,3 +268,5 @@ void Window::createTrayIcon() trayIcon = new QSystemTrayIcon(this); trayIcon->setContextMenu(trayIconMenu); } + +#endif |