summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@nokia.com>2010-09-16 16:21:00 +0200
committerJens Bache-Wiig <jens.bache-wiig@nokia.com>2010-09-16 16:21:00 +0200
commite05c1c711218fa0641d3b0e0367775807bebaad4 (patch)
tree5fa178913efd212df92c8d53b9e6c5fa56708608 /src
parent82fe2213b6649fd0b8c68220cf4ef58b18176d2d (diff)
Fixes to paintings example
Diffstat (limited to 'src')
-rw-r--r--src/context2d.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/context2d.cpp b/src/context2d.cpp
index 3f1c2ef..d8ca576 100644
--- a/src/context2d.cpp
+++ b/src/context2d.cpp
@@ -480,6 +480,7 @@ void Context2D::clearRect(qreal x, qreal y, qreal w, qreal h)
m_painter.setMatrix(m_state.matrix, false);
m_painter.setCompositionMode(QPainter::CompositionMode_Source);
QColor fillColor = parent()->property("color").value<QColor>();
+
m_painter.fillRect(QRectF(x, y, w, h), fillColor);
m_painter.restore();
scheduleChange();