]> git.sur5r.net Git - minitube/commitdiff
Removed custom background, removed status msg
authorFlavio Tordini <flavio.tordini@gmail.com>
Fri, 24 Jul 2015 07:36:09 +0000 (09:36 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Fri, 24 Jul 2015 07:36:09 +0000 (09:36 +0200)
src/aboutview.cpp
src/aboutview.h

index 3cbea11393e7904c62b6e6d2dac9d0c6ad50872a..f817ade2b714ba1bc27a261e31a511b882d9598b 100644 (file)
@@ -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());
index 9bd251a1fe94d74bf6246fad314fc1169c581e2e..23ce9334125f49b4fde9333f7c28496b2b9c011f 100644 (file)
@@ -38,15 +38,9 @@ public:
     QHash<QString, QVariant> metadata() {
         QHash<QString, QVariant> 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;