Gui: modernize C++: use range-based for loop
This commit is contained in:
@@ -64,8 +64,8 @@ TextureMapping::TextureMapping(QWidget* parent, Qt::WindowFlags fl)
|
||||
// add all supported QImage formats
|
||||
QStringList formats;
|
||||
QList<QByteArray> qtformats = QImageReader::supportedImageFormats();
|
||||
for (QList<QByteArray>::Iterator it = qtformats.begin(); it != qtformats.end(); ++it) {
|
||||
formats << QString::fromLatin1("*.%1").arg(QLatin1String(*it));
|
||||
for (const auto & it : qtformats) {
|
||||
formats << QString::fromLatin1("*.%1").arg(QLatin1String(it));
|
||||
}
|
||||
|
||||
ui->fileChooser->setFilter(tr("Image files (%1)").arg(formats.join(QLatin1String(" "))));
|
||||
|
||||
Reference in New Issue
Block a user