[calligra] krita/ui/widgets: Don't call paintevent, don't use a reference to a temporary. Should fix compilation with 4.6.
Cyrille Berger
cberger at cberger.net
Sat Jul 2 11:33:32 BST 2011
Git commit 3a4f127d1b6dc2eb0f75b0f3b8cbb592c7d8d6b3 by Cyrille Berger.
Committed on 02/07/2011 at 12:29.
Pushed by berger into branch 'master'.
Don't call paintevent, don't use a reference to a temporary. Should fix compilation with 4.6.
CCMAIL: José Luis Vergara <pentalis at gmail.com>
CCMAIL: Christoph Feck <christoph at maxiom.de>
CCMAIL: calligra-devel at kde.org
M +1 -1 krita/ui/widgets/kis_light_source.cpp
http://commits.kde.org/calligra/3a4f127d1b6dc2eb0f75b0f3b8cbb592c7d8d6b3
diff --git a/krita/ui/widgets/kis_light_source.cpp b/krita/ui/widgets/kis_light_source.cpp
index 8ed804e..c87e2a2 100644
--- a/krita/ui/widgets/kis_light_source.cpp
+++ b/krita/ui/widgets/kis_light_source.cpp
@@ -146,7 +146,7 @@ void KisLightSource::mouseMoveEvent(QMouseEvent* event)
m_moving = false;
- paintEvent(&QPaintEvent(this->geometry()));
+ update();
qDebug() << lightVector;
More information about the calligra-devel
mailing list