* @brief Sets the title bar background color. */
| 365 | * @brief Sets the title bar background color. |
| 366 | */ |
| 367 | void 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. |