| 936 | } |
| 937 | |
| 938 | void MainWindowViewer::open() |
| 939 | { |
| 940 | QFileDialog openDialog; |
| 941 | #ifndef use_unarr |
| 942 | QString pathFile = openDialog.getOpenFileName(this, tr("Open Comic"), currentDirectory, tr("Comic files") + "(*.cbr *.cbz *.rar *.zip *.tar *.pdf *.7z *.cb7 *.arj *.cbt)"); |
| 943 | #elif (UNARR_API_VERSION < 110) |
| 944 | QString pathFile = openDialog.getOpenFileName(this, tr("Open Comic"), currentDirectory, tr("Comic files") + "(*.cbr *.cbz *.rar *.zip *.tar *.pdf *.cbt)"); |
| 945 | #else |
| 946 | QString pathFile = openDialog.getOpenFileName(this, tr("Open Comic"), currentDirectory, tr("Comic files") + "(*.cbr *.cbz *.rar *.zip *.tar *.pdf *.cbt *.7z *.cb7)"); |
| 947 | #endif |
| 948 | if (!pathFile.isEmpty()) { |
| 949 | openComicFromPath(pathFile); |
| 950 | } |
| 951 | } |
| 952 | |
| 953 | void MainWindowViewer::open(QString path, ComicDB &comic, QList<ComicDB> &siblings) |
| 954 | { |
no test coverage detected