Add m4v to the list of previewable file extensions (closes #216)

Also optimize the misc::isPreviewable() function.
This commit is contained in:
Christophe Dumez
2012-11-11 19:23:10 +02:00
parent 634be0012f
commit 051341a42a
2 changed files with 51 additions and 47 deletions

View File

@@ -99,7 +99,7 @@ public:
// see http://en.wikipedia.org/wiki/Kilobyte
// value must be given in bytes
static QString friendlyUnit(qreal val, bool is_speed = false);
static bool isPreviewable(QString extension);
static bool isPreviewable(const QString& extension);
static QString magnetUriToName(const QString& magnet_uri);
static QString magnetUriToHash(const QString& magnet_uri);
static QList<QUrl> magnetUriToTrackers(const QString& magnet_uri);