| 260 | } |
| 261 | |
| 262 | void ImageView::loadImageFromUrl(const QList<QUrl>& urls) |
| 263 | { |
| 264 | if (urls.isEmpty()) { |
| 265 | return; |
| 266 | } |
| 267 | |
| 268 | const QUrl& url = urls.first(); |
| 269 | const QFileInfo info(url.toLocalFile()); |
| 270 | if (info.exists() && info.isFile()) { |
| 271 | if (isImageFormat(info)) { |
| 272 | loadFile(info.absoluteFilePath()); |
| 273 | } |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | void ImageView::pasteImage() |
| 278 | { |