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

Method onPickColor

IntrinsicEd/src/IntrinsicEdPropertyEditorColor.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43IntrinsicEdPropertyEditorColor::~IntrinsicEdPropertyEditorColor() {}
44
45void IntrinsicEdPropertyEditorColor::onPickColor()
46{
47 QColor color = QColorDialog::getColor(_ui.color->palette().button().color());
48 _ui.x->setValue(color.redF());
49 _ui.y->setValue(color.greenF());
50 _ui.z->setValue(color.blueF());
51 _ui.w->setValue(color.alphaF());
52 updateColor();
53}
54
55void IntrinsicEdPropertyEditorColor::updateColor()
56{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected