diff options
author | Arno <am@disconnect.de> | 2010-06-26 17:16:12 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-06-26 17:16:12 +0200 |
commit | 8dc808a3bd6a8156db4f68e6faaaaae6a0534195 (patch) | |
tree | 36d0d4f09903884cb96ad290ce52ccfe2d105819 /seriestreewidget.cpp | |
parent | 0b807eba97e65bf9e25f83387826ef2579b79c90 (diff) | |
download | SheMov-8dc808a3bd6a8156db4f68e6faaaaae6a0534195.tar.gz SheMov-8dc808a3bd6a8156db4f68e6faaaaae6a0534195.tar.bz2 SheMov-8dc808a3bd6a8156db4f68e6faaaaae6a0534195.zip |
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.
Diffstat (limited to 'seriestreewidget.cpp')
-rw-r--r-- | seriestreewidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/seriestreewidget.cpp b/seriestreewidget.cpp index a8e13d4..fdc9770 100644 --- a/seriestreewidget.cpp +++ b/seriestreewidget.cpp @@ -68,6 +68,10 @@ QModelIndexList SeriesTreeWidget::mapToSource(const QModelIndexList &indexes) co return retval; } +QModelIndex SeriesTreeWidget::mapToSource(const QModelIndex &index) const{ + return mProxy->mapToSource(index); +} + void SeriesTreeWidget::newSeries(){ QList<QVariant> data; data << tr("<New series>") << QVariant() << QVariant() << QVariant() << SeriesTreeModel::NewSeries; |