From: Flavio Tordini Date: Wed, 2 Sep 2009 22:53:52 +0000 (+0200) Subject: Fixed search view layout X-Git-Tag: 0.6~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1daf6b68f381c0ce16b76ea77a8279b424ffbc9b;p=minitube Fixed search view layout --- 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);