diff options
author | Ken Moore <ken@ixsystems.com> | 2017-12-06 10:10:25 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-12-06 10:10:25 -0500 |
commit | 9ffc20e29807fab4d71e663f71022ea2ea657134 (patch) | |
tree | 1c83fc072d3b945f4d4bf741636a124d89b43137 /dev-tools | |
parent | Add better handling of read-only files in LTE. (diff) | |
download | lumina-9ffc20e29807fab4d71e663f71022ea2ea657134.tar.gz lumina-9ffc20e29807fab4d71e663f71022ea2ea657134.tar.bz2 lumina-9ffc20e29807fab4d71e663f71022ea2ea657134.zip |
Fix up the systray tester utility to also show popup messages.
Diffstat (limited to 'dev-tools')
-rw-r--r-- | dev-tools/systray-tester/Trayapp.h | 11 | ||||
-rw-r--r-- | dev-tools/systray-tester/systray-tester.pro | 6 |
2 files changed, 5 insertions, 12 deletions
diff --git a/dev-tools/systray-tester/Trayapp.h b/dev-tools/systray-tester/Trayapp.h index a16e1127..0d2841a0 100644 --- a/dev-tools/systray-tester/Trayapp.h +++ b/dev-tools/systray-tester/Trayapp.h @@ -9,7 +9,7 @@ class TrayApp : public QSystemTrayIcon { Q_OBJECT - + private: QTimer *timer; int iconnum; @@ -25,12 +25,13 @@ private slots: else if(iconnum==2){ ico = "arrow-right"; iconnum=3; } else{ico = "arrow-down"; iconnum=0; } this->setIcon( LXDG::findIcon(ico,"") ); + this->showMessage("Title","Some random message", QSystemTrayIcon::Information, 1500); //1.5 second popup } - + void StopTest(){ QApplication::exit(0); } - + public: TrayApp() : QSystemTrayIcon(){ iconnum = 0; @@ -43,9 +44,5 @@ public: timer->start(); } virtual ~TrayApp(){} - - - - }; diff --git a/dev-tools/systray-tester/systray-tester.pro b/dev-tools/systray-tester/systray-tester.pro index b1169ae1..58fe233a 100644 --- a/dev-tools/systray-tester/systray-tester.pro +++ b/dev-tools/systray-tester/systray-tester.pro @@ -3,7 +3,7 @@ LANGUAGE = C++ QT += core gui widgets CONFIG += qt warn_on release -LIBS += -L../../libLumina -L/usr/local/lib -lLuminaUtils +include(../../src-qt5/core/libLumina/LuminaXDG.pri) HEADERS += Trayapp.h @@ -11,8 +11,4 @@ SOURCES += main.cpp INSTALLS = -QMAKE_LIBDIR = /usr/local/lib/qt5 - TARGET = test-tray - -INCLUDEPATH+= ../../libLumina /usr/local/include |