aboutsummaryrefslogtreecommitdiff
path: root/dev-tools/systray-tester/Trayapp.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-12-06 10:10:25 -0500
committerKen Moore <ken@ixsystems.com>2017-12-06 10:10:25 -0500
commit9ffc20e29807fab4d71e663f71022ea2ea657134 (patch)
tree1c83fc072d3b945f4d4bf741636a124d89b43137 /dev-tools/systray-tester/Trayapp.h
parentAdd better handling of read-only files in LTE. (diff)
downloadlumina-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/systray-tester/Trayapp.h')
-rw-r--r--dev-tools/systray-tester/Trayapp.h11
1 files changed, 4 insertions, 7 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(){}
-
-
-
-
};
bgstack15