summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-05-30 08:21:48 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-05-30 08:21:48 (GMT)
commit522ee22e29e254800caf1c830ce66c4ede5ca5b5 (patch)
treed8fd39ece93188a0863660ca7d448a7bcb00aaff /Swift/QtUI/QtChatTabs.cpp
parent141bad5fe7d51edc2eaffd5d15342075d550fc8c (diff)
downloadswift-contrib-522ee22e29e254800caf1c830ce66c4ede5ca5b5.zip
swift-contrib-522ee22e29e254800caf1c830ce66c4ede5ca5b5.tar.bz2
Let chat widget grow to fill the window.
Resolves: #223
Diffstat (limited to 'Swift/QtUI/QtChatTabs.cpp')
-rw-r--r--Swift/QtUI/QtChatTabs.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp
index a7698c2..0d9f8d9 100644
--- a/Swift/QtUI/QtChatTabs.cpp
+++ b/Swift/QtUI/QtChatTabs.cpp
@@ -46,6 +46,9 @@ void QtChatTabs::closeEvent(QCloseEvent* event) {
}
void QtChatTabs::addTab(QtTabbable* tab) {
+ QSizePolicy policy = sizePolicy();
+ /* Chat windows like to grow - don't let them */
+ setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
tabs_->addTab(tab, tab->windowTitle());
connect(tab, SIGNAL(titleUpdated()), this, SLOT(handleTabTitleUpdated()));
connect(tab, SIGNAL(windowClosing()), this, SLOT(handleTabClosing()));
@@ -53,6 +56,7 @@ void QtChatTabs::addTab(QtTabbable* tab) {
connect(tab, SIGNAL(wantsToActivate()), this, SLOT(handleWantsToActivate()));
connect(tab, SIGNAL(requestNextTab()), this, SLOT(handleRequestedNextTab()));
connect(tab, SIGNAL(requestPreviousTab()), this, SLOT(handleRequestedPreviousTab()));
+ setSizePolicy(policy);
}
void QtChatTabs::handleWidgetShown() {