diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-10-25 15:47:40 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-10-25 15:48:08 (GMT) |
commit | bfdf408bed69a279eb710de915e932764ceaed76 (patch) | |
tree | a56cca8886784d31d91532067b62ffc1818e8291 /Swift/QtUI/QtSwift.cpp | |
parent | efd505dd4a85e696a650e29da829504cf01bb5d0 (diff) | |
download | swift-contrib-bfdf408bed69a279eb710de915e932764ceaed76.zip swift-contrib-bfdf408bed69a279eb710de915e932764ceaed76.tar.bz2 |
Some groundwork ready for autoaway
Diffstat (limited to 'Swift/QtUI/QtSwift.cpp')
-rw-r--r-- | Swift/QtUI/QtSwift.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Swift/QtUI/QtSwift.cpp b/Swift/QtUI/QtSwift.cpp index 656e8ce..0def66f 100644 --- a/Swift/QtUI/QtSwift.cpp +++ b/Swift/QtUI/QtSwift.cpp @@ -8,6 +8,7 @@ #include "Roster/QtTreeWidgetFactory.h" #include "QtSystemTray.h" #include "QtSoundPlayer.h" +#include "QtIdleDetector.h" #include <boost/bind.hpp> #include <QSplitter> @@ -41,10 +42,11 @@ QtSwift::QtSwift(bool netbookMode) { chatWindowFactory_ = new QtChatWindowFactory(treeWidgetFactory_, splitter_, settings_); rosterWindowFactory_ = new QtMainWindowFactory(treeWidgetFactory_); soundPlayer_ = new QtSoundPlayer(); + idleDetector_ = new QtIdleDetector(); if (splitter_) { splitter_->show(); } - mainController_ = new MainController(chatWindowFactory_, rosterWindowFactory_, loginWindowFactory_, treeWidgetFactory_, settings_, application_, systemTray_, soundPlayer_); + mainController_ = new MainController(chatWindowFactory_, rosterWindowFactory_, loginWindowFactory_, treeWidgetFactory_, settings_, application_, systemTray_, soundPlayer_, idleDetector_); } QtSwift::~QtSwift() { @@ -58,6 +60,7 @@ QtSwift::~QtSwift() { delete systemTray_; delete splitter_; delete soundPlayer_; + delete idleDetector_; } } |