diff options
author | Andy Nichols <andy.nichols@digia.com> | 2014-09-10 15:56:49 +0200 |
---|---|---|
committer | Andy Nichols <andy.nichols@digia.com> | 2014-09-11 15:41:12 +0300 |
commit | 699dbb8914e718013d9ee0cbb39bdb4b6f833710 (patch) | |
tree | 1aa5054a6f632c512a828d5bbfd7186f69d3ff1d /src/plugins/scenegraph/softwarecontext/rectanglenode.cpp | |
parent | 5b7047618323a9be74169f5a0bbac35b429567e7 (diff) |
Ensure that markDirty is called when needed
There were many cases where properties of nodes could change but since
the node was not marked dirty, the scene update was never rendered.
Change-Id: I7740a43d98521073056f85fe80d6c1ff213236a3
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Diffstat (limited to 'src/plugins/scenegraph/softwarecontext/rectanglenode.cpp')
-rw-r--r-- | src/plugins/scenegraph/softwarecontext/rectanglenode.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/scenegraph/softwarecontext/rectanglenode.cpp b/src/plugins/scenegraph/softwarecontext/rectanglenode.cpp index c0eebb3bcd..0a4fcf8859 100644 --- a/src/plugins/scenegraph/softwarecontext/rectanglenode.cpp +++ b/src/plugins/scenegraph/softwarecontext/rectanglenode.cpp @@ -37,6 +37,7 @@ void RectangleNode::setRect(const QRectF &rect) QRect alignedRect = rect.toAlignedRect(); if (m_rect != alignedRect) { m_rect = alignedRect; + markDirty(DirtyMaterial); } } @@ -45,6 +46,7 @@ void RectangleNode::setColor(const QColor &color) if (m_color != color) { m_color = color; m_cornerPixmapIsDirty = true; + markDirty(DirtyMaterial); } } @@ -53,6 +55,7 @@ void RectangleNode::setPenColor(const QColor &color) if (m_penColor != color) { m_penColor = color; m_cornerPixmapIsDirty = true; + markDirty(DirtyMaterial); } } @@ -61,6 +64,7 @@ void RectangleNode::setPenWidth(qreal width) if (m_penWidth != width) { m_penWidth = width; m_cornerPixmapIsDirty = true; + markDirty(DirtyMaterial); } } @@ -155,6 +159,7 @@ void RectangleNode::setGradientStops(const QGradientStops &stops) m_stops = stops; } m_cornerPixmapIsDirty = true; + markDirty(DirtyMaterial); } void RectangleNode::setRadius(qreal radius) @@ -162,6 +167,7 @@ void RectangleNode::setRadius(qreal radius) if (m_radius != radius) { m_radius = radius; m_cornerPixmapIsDirty = true; + markDirty(DirtyMaterial); } } |