#ifndef DOWNLOADVIEW_H
#define DOWNLOADVIEW_H
-#include <QtGui>
-#if QT_VERSION >= 0x050000
#include <QtWidgets>
-#endif
+
#include "view.h"
class SegmentedControl;
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);
DownloadModel *listModel;
QTimer *updateTimer;
DownloadSettings *downloadSettings;
-
};
#endif // DOWNLOADVIEW_H