#define CHANNELSVIEW_H
#include <QtGui>
+#if QT_VERSION >= 0x050000
+#include <QtWidgets>
+#endif
#include "view.h"
class VideoSource;
void disappear();
protected:
+ void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void leaveEvent(QEvent *event);
void paintEvent(QPaintEvent *event);
private slots:
void itemEntered(const QModelIndex &index);
void itemActivated(const QModelIndex &index);
+ void showContextMenu(const QPoint &point);
void toggleShowUpdated(bool enable);
void setSortBy(SortBy sortBy);
void setSortByName() { setSortBy(SortByName); }
void setSortByMostWatched() { setSortBy(SortByMostWatched); }
void markAllAsWatched();
void unwatchedCountChanged(int count);
+ void updateQuery(bool transition = false);
private:
- void updateQuery(bool transition = false);
void setupActions();
ChannelModel *channelsModel;