X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fsearchview.cpp;h=ec5829511df93dad736b665f057f2358bf6a0f98;hb=dc017a83d762c52d9224064e9b78fd1d833dc785;hp=2e3ac2769a846007bee9ff583a42927c1b2ef8ab;hpb=6670ba1908780dd31492e266fcfb3221953ced87;p=minitube diff --git a/src/searchview.cpp b/src/searchview.cpp index 2e3ac27..ec58295 100644 --- a/src/searchview.cpp +++ b/src/searchview.cpp @@ -24,7 +24,7 @@ $END_LICENSE */ #include "searchparams.h" #include "ytsuggester.h" #include "channelsuggest.h" -#ifdef APP_MAC +#ifdef APP_MAC_SEARCHFIELD #include "searchlineedit_mac.h" #else #include "searchlineedit.h" @@ -48,17 +48,12 @@ static const int PADDING = 30; SearchView::SearchView(QWidget *parent) : QWidget(parent) { - QFont biggerFont = FontUtils::big(); - QFont smallerFont = FontUtils::smallBold(); - #if defined(APP_MAC) | defined(APP_WIN) // speedup painting since we'll paint the whole background // by ourselves anyway in paintEvent() setAttribute(Qt::WA_OpaquePaintEvent); #endif - setAutoFillBackground(true); - QBoxLayout *mainLayout = new QVBoxLayout(this); mainLayout->setMargin(PADDING); mainLayout->setSpacing(0); @@ -87,19 +82,18 @@ SearchView::SearchView(QWidget *parent) : QWidget(parent) { new QLabel("