commit e2a724e0dd7123508abb3de25f08be9da6ef5c8d
Author: Pavel Sanda <[email protected]>
Date: Fri Mar 28 11:02:30 2025 +0100
Fix compilation on bionic
---
src/frontends/qt/GuiPrefs.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/frontends/qt/GuiPrefs.cpp b/src/frontends/qt/GuiPrefs.cpp
index 267500af83..8d5df5077b 100644
--- a/src/frontends/qt/GuiPrefs.cpp
+++ b/src/frontends/qt/GuiPrefs.cpp
@@ -4399,7 +4399,11 @@ 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
style->drawItemPixmap(painter, opt.rect, Qt::AlignCenter,
pixmap);
} else if (column == PrefColors::LightColorResetColumn ||
column == PrefColors::DarkColorResetColumn) {
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs