MCPcopy Create free account
hub / github.com/begla/Intrinsic / updateColor

Method updateColor

IntrinsicEd/src/IntrinsicEdPropertyEditorColor.cpp:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void IntrinsicEdPropertyEditorColor::updateColor()
56{
57 QPalette palette = _ui.color->palette();
58 palette.setColor(QPalette::Button,
59 QColor(_ui.x->value() * 255.0f, _ui.y->value() * 255.0f,
60 _ui.z->value() * 255.0f, _ui.w->value() * 255.0f));
61 _ui.color->setPalette(palette);
62}
63
64void IntrinsicEdPropertyEditorColor::updateFromProperty()
65{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected