diff options
Diffstat (limited to 'src/modules/objects/KvsObject_painter.cpp')
| -rw-r--r-- | src/modules/objects/KvsObject_painter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/objects/KvsObject_painter.cpp b/src/modules/objects/KvsObject_painter.cpp index 0b425d38b..5c576ae5c 100644 --- a/src/modules/objects/KvsObject_painter.cpp +++ b/src/modules/objects/KvsObject_painter.cpp @@ -2007,7 +2007,11 @@ KVSO_CLASS_FUNCTION(painter, fillRect) return true; } } +#if (QT_VERSION < QT_VERSION_CHECK(6, 4, 0)) col.setNamedColor(szColor); +#else + col = QColor::fromString(szColor); +#endif col.setAlpha(iOpacity); } else |
