Mercurial > trustbridge
diff ui/trayicon.h @ 969:c096881e8ed0
(issue50) Make message box a member variable
This only shows the message box again if no old
message box still exists.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 28 Aug 2014 14:43:47 +0200 |
parents | 4efd6378c001 |
children | a4282bc67a8b |
line wrap: on
line diff
--- a/ui/trayicon.h Thu Aug 28 12:57:35 2014 +0200 +++ b/ui/trayicon.h Thu Aug 28 14:43:47 2014 +0200 @@ -20,6 +20,9 @@ * This class should become obsolete once Qt improves the support for * StatusNotifier icons that are used in Plasma 5 and Unity. */ + +class QMessageBox; + class TrayIcon : public QSystemTrayIcon { Q_OBJECT @@ -32,8 +35,12 @@ public Q_SLOTS: void showMessage(const QString &title, const QString &msg, QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::Information, int msecs = 10000); +private Q_SLOTS: + void messageDestroyed(); + private: bool useAlt; + QMessageBox *mMessageBox; }; #endif // TRAYICON_H