From c9ec7926ed78bb06ad2aaffe467fe5da3dee17e8 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Fri, 24 Jul 2015 09:36:09 +0200 Subject: [PATCH] Removed custom background, removed status msg --- src/aboutview.cpp | 13 ------------- src/aboutview.h | 6 ------ 2 files changed, 19 deletions(-) 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; -- 2.39.2