MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setColor

Method setColor

app/src/UI/Widgets/PlotCurve.cpp:307–315  ·  view source on GitHub ↗

* @brief Sets the stroke color. */

Source from the content-addressed store, hash-verified

305 * @brief Sets the stroke color.
306 */
307void Widgets::PlotCurve::setColor(const QColor& color)
308{
309 if (m_color == color)
310 return;
311
312 m_color = color;
313 Q_EMIT colorChanged();
314 update();
315}
316
317/**
318 * @brief Sets the stroke width in logical pixels.

Callers 2

onThemeChangedMethod · 0.45
setStrokeStyleMethod · 0.45

Calls 1

updateFunction · 0.85

Tested by

no test coverage detected