diff options
Diffstat (limited to 'archivebrowser.cpp')
-rw-r--r-- | archivebrowser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archivebrowser.cpp b/archivebrowser.cpp index 8f715c8..ceabc1f 100644 --- a/archivebrowser.cpp +++ b/archivebrowser.cpp @@ -127,7 +127,7 @@ void ArchiveBrowser::moveToBurn() { QFileInfo current(child.data(ArchiveBrowserModel::FullPathRole).toString()); int type = child.data(ArchiveBrowserModel::FileTypeRole).toInt(); QString destination = QString("%1/%2").arg(burnDirS).arg(current.fileName()); - if(type == 1){ //movie + if(type == FT_MOVIE){ QFile::rename(current.absoluteFilePath(), destination); filesToUpdate << child.data(ArchiveBrowserModel::GenericIdRole).toInt(); }else{ @@ -175,10 +175,10 @@ void ArchiveBrowser::itemDoubleClicked(QModelIndex cur){ if(cur.data(ArchiveBrowserModel::NodeTypeRole).toInt() == ArchiveBrowserModel::FileNode){ int fileType = cur.data(ArchiveBrowserModel::FileTypeRole).toInt(); PictureViewer2 *picView = SmGlobals::instance()->pictureViewer(); - if(fileType == 1){ //movie + if(fileType == FT_MOVIE){ QPixmap pm = Helper::preview(cur.data(ArchiveBrowserModel::FullPathRole).toString()); picView->setPixmap(pm); - }else if(fileType == 2 || fileType == 3){ //pic + }else{ picView->setFile(cur.data(ArchiveBrowserModel::FullPathRole).toString()); } picView->show(); |