MCPcopy Create free account
hub / github.com/KDAB/GammaRay / discoverSourceLocation

Method discoverSourceLocation

ui/contextmenuextension.cpp:72–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72bool ContextMenuExtension::discoverSourceLocation(ContextMenuExtension::Location location,
73 const QUrl &url)
74{
75 if (!UiIntegration::instance())
76 return false;
77
78 if (url.isEmpty())
79 return false;
80
81 setLocation(location, SourceLocation(url));
82 return true;
83}
84
85bool ContextMenuExtension::discoverPropertySourceLocation(ContextMenuExtension::Location location,
86 const QModelIndex &index)

Callers 1

contextContextMenuMethod · 0.80

Calls 2

SourceLocationClass · 0.85
isEmptyMethod · 0.45

Tested by

no test coverage detected