fix rendering issue

This commit is contained in:
Geoffray Levasseur committed 2026-11-04 15:35:05 +01:00
1 parent 988acdbab8
commit 70ff70652c
1 file changed
+7 -1
+7 -1
View File
@@ -111,7 +111,13 @@ public:
Brush();
QColor color() const { return m_color; }
void setColor(const QColor &value) { m_color = value; }
// Like VCL/LCL: choosing a colour turns a clear brush back into a solid one.
void setColor(const QColor &value)
{
m_color = value;
if (m_style == Qt::NoBrush)
m_style = Qt::SolidPattern;
}
Qt::BrushStyle style() const { return m_style; }
void setStyle(Qt::BrushStyle value) { m_style = value; }