summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-05-02 17:57:00 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-05-02 17:57:28 (GMT)
commit2d84b0e551a2661c03bdb96f575effb47b22d678 (patch)
tree3f429432277e6cad0e200863e5bfc1508ae97984 /Swift/QtUI
parentda300eb81a91b8e4cc9db0a9ca692d1a1891b429 (diff)
downloadswift-contrib-2d84b0e551a2661c03bdb96f575effb47b22d678.zip
swift-contrib-2d84b0e551a2661c03bdb96f575effb47b22d678.tar.bz2
Fixed chat dialog spacing issues.
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtChatWindow.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index 326660f..6086c42 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -71,9 +71,7 @@ QtChatWindow::QtChatWindow(const QString &contact, QtChatTheme* theme, UIEventSt
labelsWidget_->setSizeAdjustPolicy(QComboBox::AdjustToContents);
midBarLayout->addWidget(labelsWidget_,0);
- QWidget* inputBar = new QWidget(this);
- layout->addWidget(inputBar);
- QHBoxLayout* inputBarLayout = new QHBoxLayout(inputBar);
+ QHBoxLayout* inputBarLayout = new QHBoxLayout();
inputBarLayout->setContentsMargins(0,0,0,0);
inputBarLayout->setSpacing(2);
input_ = new QtTextEdit(this);
@@ -82,6 +80,7 @@ QtChatWindow::QtChatWindow(const QString &contact, QtChatTheme* theme, UIEventSt
correctingLabel_ = new QLabel(tr("Correcting"), this);
inputBarLayout->addWidget(correctingLabel_);
correctingLabel_->hide();
+ layout->addLayout(inputBarLayout);
inputClearing_ = false;
contactIsTyping_ = false;