commit 4ae8ec8d9eaec408aa751eb4dc2f5e5c14f9f024
Author: Juergen Spitzmueller <[email protected]>
Date:   Sat Jul 5 13:21:54 2025 +0200

    No need for QColorConstants
---
 src/frontends/qt/GuiPrefs.cpp | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/frontends/qt/GuiPrefs.cpp b/src/frontends/qt/GuiPrefs.cpp
index 644487f824..2f1c68720a 100644
--- a/src/frontends/qt/GuiPrefs.cpp
+++ b/src/frontends/qt/GuiPrefs.cpp
@@ -4580,11 +4580,7 @@ void ColorSwatchDelegate::paint(QPainter *painter,
                if (index.flags().testFlag(Qt::ItemIsEnabled))
                        pixmap.fill(color);
                else
-#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
-                       pixmap.fill(QColorConstants::Transparent);
-#else
-                       pixmap.fill(QColor("transparent"));
-#endif
+                       pixmap.fill(Qt::transparent);
                style->drawItemPixmap(painter, opt.rect, Qt::AlignCenter, 
pixmap);
        } else {
                opt.displayAlignment = Qt::AlignVCenter;
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to