diff options
author | Arno <am@disconnect.de> | 2014-02-15 04:55:46 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2014-02-15 04:55:46 +0100 |
commit | 816b84b7a4263c587c661e4c7178f3b6721e4cfe (patch) | |
tree | d5d6bd412d26b29f053ba7f3135f85b01dae08a7 /archivebrowsermodel.cpp | |
parent | dcbf9244f0ed147a5f3c412b9e83c581b58fa1b2 (diff) | |
download | SheMov-816b84b7a4263c587c661e4c7178f3b6721e4cfe.tar.gz SheMov-816b84b7a4263c587c661e4c7178f3b6721e4cfe.tar.bz2 SheMov-816b84b7a4263c587c661e4c7178f3b6721e4cfe.zip |
Replace ArchiveModel::FileType with #define
These constants are used all over the place and aren't really specific
to ArchiveModel, so use the preprocessor.
Diffstat (limited to 'archivebrowsermodel.cpp')
-rw-r--r-- | archivebrowsermodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archivebrowsermodel.cpp b/archivebrowsermodel.cpp index ce81d1b..202a406 100644 --- a/archivebrowsermodel.cpp +++ b/archivebrowsermodel.cpp @@ -173,7 +173,7 @@ void ArchiveBrowserModel::populate(){ QList<QVariant> fileData; fileData << QVariant() << localFilesQ.value(0) << localFilesQ.value(4) << FileNode << localFilesQ.value(1) << localFilesQ.value(3) << localFilesQ.value(2) << Helper::createArchivePath(localFilesQ.value(0).toString(), localFilesQ.value(5).toString()) << false; totalSize += localFilesQ.value(1).toDouble(); - if(localFilesQ.value(2) == 1){ //this is a movie file, no need for another enum + if(localFilesQ.value(2) == FT_MOVIE){ int q = localFilesQ.value(3).toInt(); quality = q; if(!mAvailableQualities.contains(q)){ |