From: Flavio Date: Tue, 29 Jan 2013 15:33:05 +0000 (+0100) Subject: Removed excessive padding X-Git-Tag: 2.0~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cea44a3daf7a75c7bff17d7240fcb735b6e643fe;p=minitube Removed excessive padding --- diff --git a/src/searchview.cpp b/src/searchview.cpp index f49abf4..950d342 100644 --- a/src/searchview.cpp +++ b/src/searchview.cpp @@ -36,7 +36,7 @@ SearchView::SearchView(QWidget *parent) : QWidget(parent) { setAttribute(Qt::WA_OpaquePaintEvent); #endif - QBoxLayout *mainLayout = new QVBoxLayout(); + QBoxLayout *mainLayout = new QVBoxLayout(this); mainLayout->setMargin(PADDING); mainLayout->setSpacing(0); @@ -46,7 +46,6 @@ SearchView::SearchView(QWidget *parent) : QWidget(parent) { mainLayout->addWidget(message); mainLayout->addStretch(); - mainLayout->addSpacing(PADDING); QBoxLayout *hLayout = new QHBoxLayout(); hLayout->setAlignment(Qt::AlignCenter); @@ -154,16 +153,12 @@ SearchView::SearchView(QWidget *parent) : QWidget(parent) { layout->addLayout(otherLayout); - mainLayout->addSpacing(PADDING); mainLayout->addStretch(); #ifdef APP_ACTIVATION if (!Activation::instance().isActivated()) mainLayout->addWidget(Extra::buyButton(tr("Get the full version")), 0, Qt::AlignRight); #endif - - setLayout(mainLayout); - } void SearchView::appear() {