| 153 | } |
| 154 | |
| 155 | void 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 |
| 171 | bool MainWindow::load(QUrl url) { |
nothing calls this directly
no outgoing calls
no test coverage detected