summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-06-15 20:20:13 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-06-15 20:20:13 (GMT)
commitd490e74fbca3e4ab4a75123dd75dab3bc753c010 (patch)
treeefcad5dabeebf4766dc15dc787b9ba9ba1c2aecb /Swift/QtUI/QtChatWindowFactory.cpp
parent9bc8ddaf40d73647944592385bf56ece41046846 (diff)
downloadswift-d490e74fbca3e4ab4a75123dd75dab3bc753c010.zip
swift-d490e74fbca3e4ab4a75123dd75dab3bc753c010.tar.bz2
Early pass at tabs. Doesn't do closing or title updating
Diffstat (limited to 'Swift/QtUI/QtChatWindowFactory.cpp')
-rw-r--r--Swift/QtUI/QtChatWindowFactory.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/Swift/QtUI/QtChatWindowFactory.cpp b/Swift/QtUI/QtChatWindowFactory.cpp
index b0b3679..c3c8f67 100644
--- a/Swift/QtUI/QtChatWindowFactory.cpp
+++ b/Swift/QtUI/QtChatWindowFactory.cpp
@@ -1,15 +1,21 @@
#include "QtChatWindowFactory.h"
+
+#include "QtChatTabs.h"
#include "QtChatWindow.h"
#include "QtSwiftUtil.h"
#include "QtTreeWidgetFactory.h"
+
namespace Swift {
QtChatWindowFactory::QtChatWindowFactory(QtTreeWidgetFactory *treeWidgetFactory) : treeWidgetFactory_(treeWidgetFactory) {
-
+ tabs_ = new QtChatTabs();
}
+
ChatWindow* QtChatWindowFactory::createChatWindow(const JID &contact) {
QtChatWindow *chatWindow = new QtChatWindow(P2QSTRING(contact.toString()), treeWidgetFactory_);
- chatWindow->show();
+ tabs_->addTab(chatWindow);
+ tabs_->show();
+ //chatWindow->show();
return chatWindow;
}