diff options
-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 |