| 696 | void ElaWindow::setWindowPixmap(ElaThemeType::ThemeMode themeMode, const QPixmap& pixmap) |
| 697 | { |
| 698 | Q_D(ElaWindow); |
| 699 | if (themeMode == ElaThemeType::ThemeMode::Light) |
| 700 | { |
| 701 | *d->_lightWindowPix = pixmap; |
| 702 | } |
| 703 | else |
| 704 | { |
| 705 | *d->_darkWindowPix = pixmap; |
| 706 | } |
| 707 | update(); |
| 708 | } |
| 709 | |
| 710 | const QPixmap& ElaWindow::getWindowPixmap(ElaThemeType::ThemeMode themeMode) const |
| 711 | { |
| 712 | Q_D(const ElaWindow); |
| 713 | return themeMode == ElaThemeType::Light ? *d->_lightWindowPix : *d->_darkWindowPix; |
| 714 | } |
| 715 | |
| 716 | bool ElaWindow::eventFilter(QObject* watched, QEvent* event) |
| 717 | { |
nothing calls this directly
no test coverage detected