MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / loadImageFromUrl

Method loadImageFromUrl

src/Gui/ImageView.cpp:262–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void 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
277void ImageView::pasteImage()
278{

Callers

nothing calls this directly

Calls 5

loadFileFunction · 0.85
firstMethod · 0.80
isFileMethod · 0.80
isEmptyMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected