aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Gottfried <sebastiangottfried@web.de>2015-07-10 09:36:57 (GMT)
committerSebastian Gottfried <sebastiangottfried@web.de>2015-07-10 09:36:57 (GMT)
commit9f1bbc100e8ae59a76efed9927a5299b3649f085 (patch)
treed984f51a4b1bf7e3202ef17143e9b87d7cc43659
parent228a381591793507f8b73d8cc41e95ef2e8f35ee (diff)
Fix Update Logic In Lesson Painter
Calling QQuickPaintedItem::update from ::paint was kinda stupid ;-(
-rw-r--r--src/declarativeitems/lessonpainter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/declarativeitems/lessonpainter.cpp b/src/declarativeitems/lessonpainter.cpp
index d1e4beb..745d919 100644
--- a/src/declarativeitems/lessonpainter.cpp
+++ b/src/declarativeitems/lessonpainter.cpp
@@ -262,6 +262,7 @@ void LessonPainter::updateTrainingStatus()
invalidateImageCache();
updateCursorRectangle();
+ update();
}
void LessonPainter::advanceToNextTrainingLine()
@@ -332,8 +333,6 @@ void LessonPainter::checkImageCache()
m_imageCache = img;
m_imageCacheDirty = false;
-
- update();
}
void LessonPainter::updateCursorRectangle()