]> git.sur5r.net Git - minitube/blobdiff - src/standardfeedsview.h
New upstream version 2.9
[minitube] / src / standardfeedsview.h
index 0f9e051180e280f288dfdee4cb979873ccc6b2e7..aa07c0c1585eb1321dc2ca55ff52aa38a3f443e2 100644 (file)
@@ -21,18 +21,16 @@ $END_LICENSE */
 #ifndef CATEGORIESVIEW_H
 #define CATEGORIESVIEW_H
 
-#include <QtGui>
-#if QT_VERSION >= 0x050000
 #include <QtWidgets>
-#endif
+
 #include "view.h"
 
 class VideoSource;
 struct YTCategory;
 class YTStandardFeed;
+class VideoSourceWidget;
 
 class StandardFeedsView : public View {
-
     Q_OBJECT
 
 public:
@@ -48,18 +46,19 @@ public slots:
 
 protected:
     void paintEvent(QPaintEvent *event);
-    
+
 private slots:
-    void layoutCategories(const QList<YTCategory> &categories);
+    void layoutCategories(const QVector<YTCategory> &categories);
     void selectWorldwideRegion();
     void selectLocalRegion();
+    void removeVideoSourceWidget(VideoSourceWidget *videoSourceWidget);
 
 private:
+    void resetLayout();
     void addVideoSourceWidget(VideoSource *videoSource);
-    QList<YTStandardFeed*> getMainFeeds();
-    YTStandardFeed* buildStardardFeed(const QString &feedId, const QString &label, QString time = QString());
+    YTStandardFeed *
+    buildStandardFeed(const QString &feedId, const QString &label, QString time = QString());
     QGridLayout *layout;
-    
 };
 
 #endif // CATEGORIESVIEW_H