From: Flavio Tordini Date: Mon, 7 Sep 2009 08:36:36 +0000 (+0200) Subject: Move painter inside ifdef X-Git-Tag: 0.6~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=24d96a3381124fd665e0414d8fc9d1dd77548ca0;p=minitube Move painter inside ifdef --- diff --git a/src/SearchView.cpp b/src/SearchView.cpp index 6d95d96..f7d857d 100644 --- a/src/SearchView.cpp +++ b/src/SearchView.cpp @@ -110,9 +110,8 @@ SearchView::SearchView(QWidget *parent) : QWidget(parent) { void SearchView::paintEvent(QPaintEvent * /*event*/) { - QPainter painter(this); - #ifdef Q_WS_MAC + QPainter painter(this); QLinearGradient linearGrad(0, 0, 0, height()); QPalette palette; linearGrad.setColorAt(0, palette.color(QPalette::Light)); @@ -120,15 +119,6 @@ void SearchView::paintEvent(QPaintEvent * /*event*/) { painter.fillRect(0, 0, width(), height(), QBrush(linearGrad)); #endif - /* - QPixmap watermark = QPixmap(":/images/app.png"); - painter.setOpacity(.25); - painter.drawPixmap(width() - watermark.width() - PADDING, - height() - watermark.height() - PADDING, - watermark.width(), - watermark.height(), - watermark); - */ } void SearchView::updateRecentKeywords() {