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

Method setBackgroundColor

app/src/Platform/CSD.cpp:367–376  ·  view source on GitHub ↗

* @brief Sets the title bar background color. */

Source from the content-addressed store, hash-verified

365 * @brief Sets the title bar background color.
366 */
367void Titlebar::setBackgroundColor(const QColor& color)
368{
369 m_fgCacheKey = QColor();
370
371 if (m_backgroundColor != color) {
372 m_backgroundColor = color;
373 Q_EMIT backgroundColorChanged();
374 update();
375 }
376}
377
378/**
379 * @brief Returns the bounding rectangle for a window control button.

Callers 1

updateThemeMethod · 0.80

Calls 1

updateFunction · 0.85

Tested by

no test coverage detected