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

Method findPixmapInCache

src/Gui/BitmapFactory.cpp:177–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177bool BitmapFactoryInst::findPixmapInCache(const char* name, QPixmap& px) const
178{
179 QMap<std::string, QPixmap>::Iterator it = d->xpmCache.find(name);
180 if (it != d->xpmCache.end()) {
181 px = it.value();
182 return true;
183 }
184 return false;
185}
186
187QIcon BitmapFactoryInst::iconFromTheme(const char* name, const QIcon& fallback)
188{

Callers 5

getIconMethod · 0.80
sAddIconMethod · 0.80
sIsIconCachedMethod · 0.80
workbenchIconMethod · 0.80
renderConstrIconMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected