summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Swift/QtUI/QtChatTabs.cpp4
-rw-r--r--Swift/QtUI/QtChatWindow.cpp2
2 files changed, 5 insertions, 1 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() {
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index 544efd3..cb4c437 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -46,7 +46,7 @@ QtChatWindow::QtChatWindow(const QString &contact, UIEventStream* eventStream) :
treeWidget_ = new QtTreeWidget(eventStream_);
treeWidget_->hide();
logRosterSplitter->addWidget(treeWidget_);
-
+ logRosterSplitter->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
QWidget* midBar = new QWidget(this);
layout->addWidget(midBar);