diff options
author | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2010-09-16 16:21:00 +0200 |
---|---|---|
committer | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2010-09-16 16:21:00 +0200 |
commit | e05c1c711218fa0641d3b0e0367775807bebaad4 (patch) | |
tree | 5fa178913efd212df92c8d53b9e6c5fa56708608 /src | |
parent | 82fe2213b6649fd0b8c68220cf4ef58b18176d2d (diff) |
Fixes to paintings example
Diffstat (limited to 'src')
-rw-r--r-- | src/context2d.cpp | 1 |
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(); |