From 1daf6b68f381c0ce16b76ea77a8279b424ffbc9b Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Thu, 3 Sep 2009 00:53:52 +0200 Subject: [PATCH] Fixed search view layout --- src/SearchView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SearchView.cpp b/src/SearchView.cpp index 3dc4ed9..4837f5f 100644 --- a/src/SearchView.cpp +++ b/src/SearchView.cpp @@ -53,7 +53,7 @@ SearchView::SearchView(QWidget *parent) : QWidget(parent) { layout->addWidget(tipLabel); QHBoxLayout *searchLayout = new QHBoxLayout(); - searchLayout->setAlignment(Qt::AlignCenter); + searchLayout->setAlignment(Qt::AlignVCenter); queryEdit = new SearchLineEdit(this); queryEdit->setFont(biggerFont); @@ -70,6 +70,7 @@ SearchView::SearchView(QWidget *parent) : QWidget(parent) { watchButton = new QPushButton(tr("Watch"), this); watchButton->setDefault(true); watchButton->setEnabled(false); + watchButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); connect(watchButton, SIGNAL(clicked()), this, SLOT(watch())); searchLayout->addWidget(watchButton); -- 2.39.5