summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-04-24 17:40:18 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-04-24 19:01:45 (GMT)
commitf45aa5ce9ee21679abbe263ec2df7f0254331f4b (patch)
tree1b67cf3e7f19ff74ae65204f20574537894c6304 /Slimber/Qt/main.cpp
parent9bff72701b1541180b92bfef8bac7a6921d19576 (diff)
downloadswift-f45aa5ce9ee21679abbe263ec2df7f0254331f4b.zip
swift-f45aa5ce9ee21679abbe263ec2df7f0254331f4b.tar.bz2
Add About dialog to Slimber/Qt.
Diffstat (limited to 'Slimber/Qt/main.cpp')
-rw-r--r--Slimber/Qt/main.cpp7
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);