From 8dc808a3bd6a8156db4f68e6faaaaae6a0534195 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 26 Jun 2010 17:16:12 +0200 Subject: Implemented playing a movie on doubleclick Movie files are played in the default player when double clicking on a movie, but not when doubleclicking on a series. The latter invokes the edit event on the series. Don't yet know if this is a good thing or not. Changes on the way there: 1. new helper function for finding the right player. Still need to fix FileSystemWidget to also use the Helper::function. It's a simple copy & paste from there. 2. added function SeriesTreeModel::findSortedMovies. It returns a QFileInfoList sorted by seriespart and fileno. --- seriestreewidget.h | 1 + 1 file changed, 1 insertion(+) (limited to 'seriestreewidget.h') diff --git a/seriestreewidget.h b/seriestreewidget.h index bfeedf6..0db8873 100644 --- a/seriestreewidget.h +++ b/seriestreewidget.h @@ -25,6 +25,7 @@ class SeriesTreeWidget : public QWidget { explicit SeriesTreeWidget(QWidget *parent = 0); SeriesTreeView *seriesTree() { return mView; } QModelIndexList mapToSource(const QModelIndexList &indexes) const; + QModelIndex mapToSource(const QModelIndex &index) const; public slots: void newSeries(); -- cgit v1.2.3-70-g09d2