MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / setColor

Method setColor

pj_widgets/src/ColorPickerWidget.cpp:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27ColorPickerWidget::~ColorPickerWidget() = default;
28
29void ColorPickerWidget::setColor(const QColor& color) {
30 if (color_ == color) {
31 return;
32 }
33 color_ = color;
34 update();
35}
36
37QSize ColorPickerWidget::sizeHint() const {
38 return {kSwatchWidth, kSwatchHeight};

Callers 1

openPopupMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected