File indexing completed on 2024-03-24 15:27:59

0001 #include <ksystemtrayicon.h>
0002 #include <QApplication>
0003 #include <QLabel>
0004 
0005 int main(int argc, char **argv)
0006 {
0007     QApplication::setApplicationName("ksystemtraytest");
0008     QApplication app(argc, argv);
0009     QLabel *l = new QLabel("System Tray Main Window", nullptr);
0010     KSystemTrayIcon *tray = new KSystemTrayIcon("test", l);
0011     l->show();
0012     tray->show();
0013 
0014     return app.exec();
0015 }