From eaf77f5f824522b58c58b4510b7ddbc72b20ccc4 Mon Sep 17 00:00:00 2001 From: Sergey Chupligin Date: Fri, 17 Nov 2023 18:50:24 +0300 Subject: [PATCH] Fixup build for old qt6 --- src/core/themedaemon/mlocalthemedaemonclient.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/themedaemon/mlocalthemedaemonclient.cpp b/src/core/themedaemon/mlocalthemedaemonclient.cpp index 380fcc3..fc87521 100644 --- a/src/core/themedaemon/mlocalthemedaemonclient.cpp +++ b/src/core/themedaemon/mlocalthemedaemonclient.cpp @@ -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));