diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-04-24 17:40:18 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-04-24 19:01:45 (GMT) |
commit | f45aa5ce9ee21679abbe263ec2df7f0254331f4b (patch) | |
tree | 1b67cf3e7f19ff74ae65204f20574537894c6304 /Slimber/Qt/main.cpp | |
parent | 9bff72701b1541180b92bfef8bac7a6921d19576 (diff) | |
download | swift-contrib-f45aa5ce9ee21679abbe263ec2df7f0254331f4b.zip swift-contrib-f45aa5ce9ee21679abbe263ec2df7f0254331f4b.tar.bz2 |
Add About dialog to Slimber/Qt.
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); |