Changeset View
Changeset View
Standalone View
Standalone View
src/slideshoweffect.cpp
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Line(s) | |||||
143 | { | 143 | { | ||
144 | if ( folder.isNull() ) | 144 | if ( folder.isNull() ) | ||
145 | return; | 145 | return; | ||
146 | 146 | | |||
147 | QDir dir( folder ); | 147 | QDir dir( folder ); | ||
148 | 148 | | |||
149 | if ( !dir.exists() || !dir.isReadable() ) { | 149 | if ( !dir.exists() || !dir.isReadable() ) { | ||
150 | qWarning() << "Folder does not exist or is not readable: " | 150 | qWarning() << "Folder does not exist or is not readable: " | ||
151 | << folder << endl; | 151 | << folder << Qt::endl; | ||
152 | return; | 152 | return; | ||
153 | } | 153 | } | ||
154 | 154 | | |||
155 | // TODO: make an automated filter, maybe with QImageIO. | 155 | // TODO: make an automated filter, maybe with QImageIO. | ||
156 | QStringList filters; | 156 | QStringList filters; | ||
157 | filters << "*.png" << "*.jpg" << "*.jpeg" << "*.tif" << "*.tiff" << | 157 | filters << "*.png" << "*.jpg" << "*.jpeg" << "*.tif" << "*.tiff" << | ||
158 | "*.gif" << "*.bmp" << "*.xpm" << "*.ppm" << "*.pnm" << "*.xcf" << | 158 | "*.gif" << "*.bmp" << "*.xpm" << "*.ppm" << "*.pnm" << "*.xcf" << | ||
159 | "*.pcx"; | 159 | "*.pcx"; | ||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |