Skip to content

Commit

Permalink
Fixup build for old qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
neochapay committed Nov 17, 2023
1 parent 2e6445a commit eaf77f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/themedaemon/mlocalthemedaemonclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ QPixmap MLocalThemeDaemonClient::requestPixmap(const QString& id, const QSize& r
pixmap = QPixmap::fromImage(image);
}
if (parts.length() > 1)
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
if (parts.length() > 1 && QColor::isValidColorName(parts.at(1))) {
#else
if (parts.length() > 1 && QColor::isValidColor(parts.at(1))) {
#endif
QPainter painter(&pixmap);
painter.setCompositionMode(QPainter::CompositionMode_SourceIn);
painter.fillRect(pixmap.rect(), parts.at(1));
Expand Down

0 comments on commit eaf77f5

Please sign in to comment.