From 816b84b7a4263c587c661e4c7178f3b6721e4cfe Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 15 Feb 2014 04:55:46 +0100 Subject: Replace ArchiveModel::FileType with #define These constants are used all over the place and aren't really specific to ArchiveModel, so use the preprocessor. --- newmoviewizard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newmoviewizard.cpp') diff --git a/newmoviewizard.cpp b/newmoviewizard.cpp index 76a007d..a1ab2f3 100644 --- a/newmoviewizard.cpp +++ b/newmoviewizard.cpp @@ -125,7 +125,7 @@ void NewMovieWizard::accept(){ QString picSize; int type = fData.value(WizardTreeModel::FileType).toInt(); QVariant quality; - if(type == ArchiveFilesModel::Movie){ + if(type == FT_MOVIE){ QVariantMap m = Helper::ffmpegData(fullPath); secs = m.value("duration").toDouble(); quality = field("quality").toInt(); -- cgit v1.2.3-70-g09d2