diff options
Diffstat (limited to 'Slimber/Qt/main.cpp')
-rw-r--r-- | Slimber/Qt/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Slimber/Qt/main.cpp b/Slimber/Qt/main.cpp index 6016945..6c6ea26 100644 --- a/Slimber/Qt/main.cpp +++ b/Slimber/Qt/main.cpp @@ -5,22 +5,29 @@ */ #include <QApplication> +#include <QCoreApplication> #include <QSystemTrayIcon> #include <QMessageBox> #include "QtMenulet.h" #include "Slimber/MainController.h" #include "Swiften/EventLoop/Qt/QtEventLoop.h" +#include "Slimber/Qt/BuildVersion.h" int main(int argc, char* argv[]) { QApplication app(argc, argv); QtEventLoop eventLoop; + QCoreApplication::setApplicationName("Slimber"); + QCoreApplication::setApplicationVersion(QString(buildVersion)); + if (!QSystemTrayIcon::isSystemTrayAvailable()) { QMessageBox::critical(0, QObject::tr("Systray"), QObject::tr("No system tray")); return 1; } + app.setQuitOnLastWindowClosed(false); + QtMenulet menulet; MainController controller(&menulet); |