]> git.sur5r.net Git - minitube/commitdiff
Removed custom background gradient 0.9
author <> <>
Sat, 23 Jan 2010 14:06:48 +0000 (15:06 +0100)
committerFlavio <flavio@Lauras-MacBook.local>
Sat, 23 Jan 2010 14:06:48 +0000 (15:06 +0100)
src/AboutView.cpp
src/AboutView.h
src/SearchView.cpp
src/SearchView.h

index 2d727d2c699fd0130f3fa8050c72151312705f50..68ec04f4cbfe98ca527cff515dd70d097cc5415f 100644 (file)
@@ -76,14 +76,3 @@ AboutView::AboutView(QWidget *parent) : QWidget(parent) {
     layout->addLayout(buttonLayout);
 
 }
-
-void AboutView::paintEvent(QPaintEvent * /*event*/) {
-#ifdef Q_WS_MAC
-    QPainter painter(this);
-    QLinearGradient linearGrad(0, 0, 0, height());
-    QPalette palette;
-    linearGrad.setColorAt(0, palette.color(QPalette::Light));
-    linearGrad.setColorAt(1, palette.color(QPalette::Midlight));
-    painter.fillRect(0, 0, width(), height(), QBrush(linearGrad));
-#endif
-}
index 434434256dc0f279123405381fdd302eb2919a0a..ba5fb7f87cf24265f6c1f778d4002216a210fc02 100644 (file)
@@ -22,8 +22,5 @@ public:
         return metadata;
     }
 
-protected:
-    void paintEvent(QPaintEvent *);
-
 };
 #endif
index 62eb5dc42e8685e0ba4d6194fa1c4a3c38bf0c82..b4437bdc8cf9cb98be00833ea0b0ef0fbe9ff678 100644 (file)
@@ -10,12 +10,6 @@ static const int PADDING = 30;
 
 SearchView::SearchView(QWidget *parent) : QWidget(parent) {
 
-#ifdef Q_WS_MAC
-    // speedup painting since we'll paint the whole background
-    // by ourselves anyway in paintEvent()
-    setAttribute(Qt::WA_OpaquePaintEvent);
-#endif
-
     QFont biggerFont;
     biggerFont.setPointSize(biggerFont.pointSize()*1.5);
 
@@ -112,19 +106,6 @@ SearchView::SearchView(QWidget *parent) : QWidget(parent) {
     checkForUpdate();
 }
 
-void SearchView::paintEvent(QPaintEvent * /*event*/) {
-
-#ifdef Q_WS_MAC
-    QPainter painter(this);
-    QLinearGradient linearGrad(0, 0, 0, height());
-    QPalette palette;
-    linearGrad.setColorAt(0, palette.color(QPalette::Light));
-    linearGrad.setColorAt(1, palette.color(QPalette::Midlight));
-    painter.fillRect(0, 0, width(), height(), QBrush(linearGrad));
-#endif
-
-}
-
 void SearchView::updateRecentKeywords() {
 
     // cleanup
index fe4e93993fcca5cb7adbbf7b41346a97caa9ec9a..caa0309147e299321351c26a65b33ab86921b27d 100644 (file)
@@ -33,9 +33,6 @@ public slots:
     void watch(QString query);
     void gotNewVersion(QString version);
 
-protected:
-    void paintEvent(QPaintEvent *);
-
 signals:
     void search(QString query);