]> git.sur5r.net Git - minitube/commitdiff
Fixed search view layout
authorFlavio Tordini <flavio.tordini@gmail.com>
Wed, 2 Sep 2009 22:53:52 +0000 (00:53 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Wed, 2 Sep 2009 22:53:52 +0000 (00:53 +0200)
src/SearchView.cpp

index 3dc4ed9b0055a103ba41e3541e7b881e7f98a51b..4837f5fd34f052820386723ba931a33693348ec6 100644 (file)
@@ -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);