fix rendering issue
This commit is contained in:
1 parent
988acdbab8
commit
70ff70652c
1 file changed
+7
-1
@@ -111,7 +111,13 @@ public:
|
|||||||
Brush();
|
Brush();
|
||||||
|
|
||||||
QColor color() const { return m_color; }
|
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; }
|
Qt::BrushStyle style() const { return m_style; }
|
||||||
void setStyle(Qt::BrushStyle value) { m_style = value; }
|
void setStyle(Qt::BrushStyle value) { m_style = value; }
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user