X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fdownloadview.h;h=216010ad3df5cc75dd956da9d27a18dfbe8ac236;hb=refs%2Ftags%2Fupstream%2F2.9;hp=6b30286be054d5f98c043313e6b20a56f9ee89de;hpb=994e6e5e95196b0e36c680b1fd496f12d71739c9;p=minitube diff --git a/src/downloadview.h b/src/downloadview.h index 6b30286..216010a 100644 --- a/src/downloadview.h +++ b/src/downloadview.h @@ -21,10 +21,8 @@ $END_LICENSE */ #ifndef DOWNLOADVIEW_H #define DOWNLOADVIEW_H -#include -#if QT_VERSION >= 0x050000 #include -#endif + #include "view.h" class SegmentedControl; @@ -33,17 +31,15 @@ class DownloadListView; class DownloadSettings; class DownloadView : public View { - Q_OBJECT public: DownloadView(QWidget *parent); void appear(); void disappear(); - QHash metadata() { - QHash metadata; - metadata.insert("title", tr("Downloads")); - return metadata; + const QString &getTitle() { + static const QString s = tr("Downloads"); + return s; } public slots: @@ -56,7 +52,6 @@ private: DownloadModel *listModel; QTimer *updateTimer; DownloadSettings *downloadSettings; - }; #endif // DOWNLOADVIEW_H