]> git.sur5r.net Git - minitube/blobdiff - src/aboutview.h
Upload 3.9.3-2 to unstable
[minitube] / src / aboutview.h
index 9bd251a1fe94d74bf6246fad314fc1169c581e2e..f10773d0d0fc9a8f6eb171803646f39d90051768 100644 (file)
@@ -21,34 +21,20 @@ $END_LICENSE */
 #ifndef ABOUTVIEW_H
 #define ABOUTVIEW_H
 
-#include <QtGui>
-#if QT_VERSION >= 0x050000
 #include <QtWidgets>
-#endif
-#include "view.h"
-#include "constants.h"
 
-class AboutView : public QWidget, public View {
+#include "constants.h"
+#include "view.h"
 
+class AboutView : public View {
     Q_OBJECT
 
 public:
     AboutView(QWidget *parent);
     void appear();
-    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 *);
+    QString getTitle() { return tr("About"); }
 
 private:
     QPushButton *closeButton;
-
 };
 #endif