MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / setColor

Method setColor

dependencies/ColorWheel/ColorWheel.cpp:37–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void ColorWheel::setColor(const QColor &color)
38{
39 if(color == current) return;
40 if(color.hue() != current.hue())
41 {
42 hueChanged(color.hue());
43 }
44
45 if((color.saturation() != current.saturation()) || (color.value() != current.value()))
46 {
47 svChanged(color);
48 }
49
50 update();
51 emit colorChanged(color);
52}
53
54
55QColor ColorWheel::posColor(const QPoint &point)

Callers 4

SetDarkThemeMethod · 0.45
updateColorUiMethod · 0.45
OpenRGBDialogMethod · 0.45
drawPickerMethod · 0.45

Calls 2

updateFunction · 0.50
valueMethod · 0.45

Tested by

no test coverage detected