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. --- helper.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'helper.h') diff --git a/helper.h b/helper.h index 90a1ad6..62919bb 100644 --- a/helper.h +++ b/helper.h @@ -8,6 +8,9 @@ #ifndef HELPER_H #define HELPER_H +#include +#include + #include class QString; @@ -19,6 +22,7 @@ namespace Helper { const QString moveToArchive(const QString &path, const QString &md5); bool removeFromArchive(const QString &filename, const QString &md5); const QString createArchivePath(const QString &path, const QString &md5, bool withMd5 = false); + QPair programData(const QString &prefix, const QString &preferred = QString()); class StringListContains : public std::binary_function { public: bool operator()(const QString s, const QString &part) const; -- cgit v1.2.3-70-g09d2