From 2d84b0e551a2661c03bdb96f575effb47b22d678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Mon, 2 May 2011 19:57:00 +0200 Subject: Fixed chat dialog spacing issues. 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; -- cgit v0.10.2-6-g49f6