summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-06-18 20:34:41 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-06-18 20:35:22 (GMT)
commit9a457c621bd75a9929cc0616b7659dba2945fdac (patch)
treefa1b7e541355edb1983dea78728892ddf89f08ff /Swift/QtUI/QtSwift.cpp
parent38e83db22eed41e115c1483323a62c62be34dbec (diff)
downloadswift-9a457c621bd75a9929cc0616b7659dba2945fdac.zip
swift-9a457c621bd75a9929cc0616b7659dba2945fdac.tar.bz2
System Tray
We need to have a look at the icons somewhat, but these will do for the second.
Diffstat (limited to 'Swift/QtUI/QtSwift.cpp')
-rw-r--r--Swift/QtUI/QtSwift.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Swift/QtUI/QtSwift.cpp b/Swift/QtUI/QtSwift.cpp
index b8b45a1..6aab3b4 100644
--- a/Swift/QtUI/QtSwift.cpp
+++ b/Swift/QtUI/QtSwift.cpp
@@ -4,6 +4,7 @@
#include "QtChatWindowFactory.h"
#include "QtMainWindowFactory.h"
#include "QtTreeWidgetFactory.h"
+#include "QtSystemTray.h"
#include <boost/bind.hpp>
@@ -22,12 +23,13 @@ QtSwift::QtSwift() :
chatWindowFactory_(new QtChatWindowFactory(treeWidgetFactory_)),
rosterWindowFactory_(new QtMainWindowFactory(treeWidgetFactory_)),
loginWindowFactory_(new QtLoginWindowFactory()) {
+ systemTray_ = new QtSystemTray();
QCoreApplication::setApplicationName("Swift");
QCoreApplication::setOrganizationName("Swift");
QCoreApplication::setOrganizationDomain("swift.im");
settings_ = new QtSettingsProvider();
application_ = new PlatformApplication("Swift");
- mainController_ = new MainController(chatWindowFactory_, rosterWindowFactory_, loginWindowFactory_, treeWidgetFactory_, settings_, application_);
+ mainController_ = new MainController(chatWindowFactory_, rosterWindowFactory_, loginWindowFactory_, treeWidgetFactory_, settings_, application_, systemTray_);
}
QtSwift::~QtSwift() {
@@ -38,6 +40,7 @@ QtSwift::~QtSwift() {
delete mainController_;
delete settings_;
delete application_;
+ delete systemTray_;
}
}