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

Method updateIcon

src/Mod/Measure/Gui/ViewProviderMeasureBase.cpp:423–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421
422
423void ViewProviderMeasureBase::updateIcon()
424{
425 // This assumes the icons main color is black
426
427 Gui::ColorMap colorMap {
428 {0x000000, TextColor.getValue().getPackedRGB() >> 8},
429 };
430 pLabel->setIcon(Gui::BitmapFactory().pixmapFromSvg(sPixmap, QSize(20, 20), colorMap));
431}
432
433void ViewProviderMeasureBase::attach(App::DocumentObject* pcObj)
434{

Callers

nothing calls this directly

Calls 4

getPackedRGBMethod · 0.80
pixmapFromSvgMethod · 0.80
getValueMethod · 0.45
setIconMethod · 0.45

Tested by

no test coverage detected