summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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_;
};
}