]> git.sur5r.net Git - minitube/blobdiff - src/downloadview.h
Upload 3.9.3-2 to unstable
[minitube] / src / downloadview.h
index dccbf9c95a2705e2fa1055e837d39a0eb9becf68..eb5e2af986e7d8891df15b35f1aeeb5aa01fc700 100644 (file)
@@ -21,10 +21,8 @@ $END_LICENSE */
 #ifndef DOWNLOADVIEW_H
 #define DOWNLOADVIEW_H
 
-#include <QtGui>
-#if QT_VERSION >= 0x050000
 #include <QtWidgets>
-#endif
+
 #include "view.h"
 
 class SegmentedControl;
@@ -32,19 +30,14 @@ class DownloadModel;
 class DownloadListView;
 class DownloadSettings;
 
-class DownloadView : public QWidget, public View {
-
+class DownloadView : public View {
     Q_OBJECT
 
 public:
     DownloadView(QWidget *parent);
     void appear();
     void disappear();
-    QHash<QString, QVariant> metadata() {
-        QHash<QString, QVariant> metadata;
-        metadata.insert("title", tr("Downloads"));
-        return metadata;
-    }
+    QString getTitle() { return tr("Downloads"); }
 
 public slots:
     void itemEntered(const QModelIndex &index);
@@ -56,7 +49,6 @@ private:
     DownloadModel *listModel;
     QTimer *updateTimer;
     DownloadSettings *downloadSettings;
-
 };
 
 #endif // DOWNLOADVIEW_H