From d8b964698d8bae30a0a0d609cbe5b01bd410e937 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 4 Apr 2018 08:54:05 +0200 Subject: MovieWidget: turn bottom view into SmView Also, play the movie on doubleclick if it's available. --- moviewidget.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'moviewidget.h') diff --git a/moviewidget.h b/moviewidget.h index a3ea99e..8c8fc84 100644 --- a/moviewidget.h +++ b/moviewidget.h @@ -8,6 +8,7 @@ class QComboBox; class QTreeView; class QSortFilterProxyModel; class QStandardItemModel; +class SmView; class MovieWidget : public QWidget { Q_OBJECT @@ -26,6 +27,7 @@ class MovieWidget : public QWidget { void populateByActors(); void populateByGenres(); void topSelectionChanged(); + void bottomDoubleClicked(const QModelIndex &idx); private: void setupWidget(); @@ -34,7 +36,7 @@ class MovieWidget : public QWidget { QTreeView *mTopView; QSortFilterProxyModel *mTopProxy; QStandardItemModel *mTopModel; - QTreeView *mBottomView; + SmView *mBottomView; QSortFilterProxyModel *mBottomProxy; QStandardItemModel *mBottomModel; }; -- cgit v1.2.3-70-g09d2