MCPcopy Create free account
hub / github.com/Theverat/NormalmapGenerator / loadAllFromDir

Method loadAllFromDir

src_gui/mainwindow.cpp:155–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155void MainWindow::loadAllFromDir(QUrl url) {
156 // Load all images in the directory
157 QDir directory(url.toLocalFile());
158
159 QStringList fileList = directory.entryList(supportedImageformats, QDir::Files);
160 QList<QUrl> urls;
161
162 foreach(QString path, fileList) {
163 QUrl subUrl = QUrl::fromLocalFile(directory.absolutePath() + QDir::separator() + path);
164 urls.append(subUrl);
165 }
166
167 loadMultipleDropped(urls);
168}
169
170//load the image specified in the url
171bool MainWindow::load(QUrl url) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected