summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-10-15 20:26:00 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-10-15 20:26:00 (GMT)
commit87775c50a1c9a223f554c37e549ea8a2b03c9a89 (patch)
tree030ca4b9919f48cadaf1a7822d1f3e8917af119b /Swift/QtUI/QtChatWindowFactory.h
parent47f27c607a7fb04495d402c6059664250d452a81 (diff)
downloadswift-87775c50a1c9a223f554c37e549ea8a2b03c9a89.zip
swift-87775c50a1c9a223f554c37e549ea8a2b03c9a89.tar.bz2
Save the geometry of the chat and roster windows.
Diffstat (limited to 'Swift/QtUI/QtChatWindowFactory.h')
-rw-r--r--Swift/QtUI/QtChatWindowFactory.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/Swift/QtUI/QtChatWindowFactory.h b/Swift/QtUI/QtChatWindowFactory.h
index 1205164..4a5a7fb 100644
--- a/Swift/QtUI/QtChatWindowFactory.h
+++ b/Swift/QtUI/QtChatWindowFactory.h
@@ -3,17 +3,23 @@
#include "Swift/Controllers/ChatWindowFactory.h"
#include "Swiften/JID/JID.h"
+#include "QtSettingsProvider.h"
+#include <QObject>
#include <QSplitter>
namespace Swift {
class QtTreeWidgetFactory;
class QtChatTabs;
- class QtChatWindowFactory : public ChatWindowFactory {
+ class QtChatWindowFactory : public QObject, public ChatWindowFactory {
+ Q_OBJECT
public:
- QtChatWindowFactory(QtTreeWidgetFactory *treeWidgetFactory, QSplitter* splitter);
+ QtChatWindowFactory(QtTreeWidgetFactory *treeWidgetFactory, QSplitter* splitter, QtSettingsProvider* settings);
ChatWindow* createChatWindow(const JID &contact);
+ private slots:
+ void handleWindowGeometryChanged();
private:
QtTreeWidgetFactory* treeWidgetFactory_;
+ QtSettingsProvider* settings_;
QtChatTabs* tabs_;
};
}