From: Flavio Tordini Date: Fri, 24 Jul 2015 07:36:09 +0000 (+0200) Subject: Removed custom background, removed status msg X-Git-Tag: 2.5~66 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c9ec7926ed78bb06ad2aaffe467fe5da3dee17e8;p=minitube Removed custom background, removed status msg --- diff --git a/src/aboutview.cpp b/src/aboutview.cpp index 3cbea11..f817ade 100644 --- a/src/aboutview.cpp +++ b/src/aboutview.cpp @@ -110,19 +110,6 @@ AboutView::AboutView(QWidget *parent) : QWidget(parent) { layout->addLayout(buttonLayout); } -void AboutView::paintEvent(QPaintEvent * /*event*/) { -#if defined(APP_MAC) | defined(APP_WIN) - QBrush brush; - if (window()->isActiveWindow()) { - brush = QBrush(QColor(0xdd, 0xe4, 0xeb)); - } else { - brush = palette().window(); - } - QPainter painter(this); - painter.fillRect(0, 0, width(), height(), brush); -#endif -} - void AboutView::appear() { #ifdef APP_MAC mac::uncloseWindow(window()->winId()); diff --git a/src/aboutview.h b/src/aboutview.h index 9bd251a..23ce933 100644 --- a/src/aboutview.h +++ b/src/aboutview.h @@ -38,15 +38,9 @@ public: QHash metadata() { QHash metadata; metadata.insert("title", tr("About")); - metadata.insert("description", - tr("What you always wanted to know about %1 and never dared to ask") - .arg(Constants::NAME)); return metadata; } -protected: - void paintEvent(QPaintEvent *); - private: QPushButton *closeButton;