Allow compilation without QSystemTrayIcon
[quassel.git] / src / qtui / systemtray.h
index d98bf46..cdb66d7 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef SYSTEMTRAY_H_
 #define SYSTEMTRAY_H_
 
+#ifndef QT_NO_SYSTEMTRAYICON
+
 #ifdef HAVE_KDE
 #  include <KSystemTrayIcon>
 #else
@@ -95,4 +97,6 @@ bool SystemTray::isSystemTrayAvailable() const { return QSystemTrayIcon::isSyste
 bool SystemTray::isAlerted() const { return _alert; }
 void SystemTray::setInhibitActivation() { _inhibitActivation = true; }
 
+#endif /* QT_NO_SYSTEMTRAYICON */
+
 #endif