diff ui/mainwindow.h @ 871:4efd6378c001

(issue51) Add fallback in case systemtray is unavailable. If no systemtray is available it will now show a message box as notification.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 06 Aug 2014 18:03:23 +0200
parents 27043d74dc90
children 7c89c5dc2200
line wrap: on
line diff
--- a/ui/mainwindow.h	Wed Aug 06 11:55:02 2014 +0200
+++ b/ui/mainwindow.h	Wed Aug 06 18:03:23 2014 +0200
@@ -13,7 +13,6 @@
  * @brief Main UI controller
  */
 
-#include <QSystemTrayIcon>
 #include <QMainWindow>
 #include <QSettings>
 #include <QMenuBar>
@@ -28,6 +27,7 @@
 #include "certificatelist.h"
 #include "certificatelistwidget.h"
 #include "textoverlaybutton.h"
+#include "trayicon.h"
 class QMenu;
 class QAction;
 class QTimer;
@@ -219,7 +219,7 @@
 
     QSettings mSettings;
 
-    QSystemTrayIcon *mTrayIcon;
+    TrayIcon *mTrayIcon;
     QTimer *mMessageTimer;
     QMenu *mTrayMenu;
     QAction *mCheckUpdates;

http://wald.intevation.org/projects/trustbridge/