|
|
|
@ -162,16 +162,11 @@ void Document::extractImageFiles( const QStringList &list ) |
|
|
|
|
|
|
|
|
|
|
|
qSort( files.begin(), files.end(), caseSensitiveNaturalOrderLessThen ); |
|
|
|
qSort( files.begin(), files.end(), caseSensitiveNaturalOrderLessThen ); |
|
|
|
|
|
|
|
|
|
|
|
for ( int i = 0; i < files.count(); ++i ) { |
|
|
|
foreach(const QString &f, files) { |
|
|
|
const QString lowerFile = files[ i ].toLower(); |
|
|
|
const QImageReader r(f); |
|
|
|
|
|
|
|
|
|
|
|
if ( lowerFile.endsWith( ".gif" ) || |
|
|
|
if ( r.canRead() ) |
|
|
|
lowerFile.endsWith( ".jpg" ) || |
|
|
|
mPageMap.append(f); |
|
|
|
lowerFile.endsWith( ".jpeg" ) || |
|
|
|
|
|
|
|
lowerFile.endsWith( ".png" ) || |
|
|
|
|
|
|
|
lowerFile.endsWith( ".tif" ) || |
|
|
|
|
|
|
|
lowerFile.endsWith( ".tiff" ) ) |
|
|
|
|
|
|
|
mPageMap.append( files[ i ] ); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|