summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@nokia.com>2010-04-07 11:36:02 (GMT)
committerYoann Lopes <yoann.lopes@nokia.com>2010-04-07 13:10:03 (GMT)
commit4c23dd7e310c2af7dc7bf351eade0bd6d528561e (patch)
treecac9dcc4434e8fc881fb82d109d1b6b017e7cfd5 /src/gui/graphicsview
parent2883580a3e10df16789ba1c9ee67507e508b95c1 (diff)
downloadQt-4c23dd7e310c2af7dc7bf351eade0bd6d528561e.zip
Qt-4c23dd7e310c2af7dc7bf351eade0bd6d528561e.tar.gz
Qt-4c23dd7e310c2af7dc7bf351eade0bd6d528561e.tar.bz2
Fixes CursorChange and TooltipChange events delivery for QGraphicsWidget
As the documentation mentions, these two events are delivered respectively after the cursor has changed and after the tooltip has changed. These two events were previously delivered just before. This patch is needed for fixing QTBUG-5349 even if it is not directly related. Auto-test included. Reviewed-by: bnilsen
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r--src/gui/graphicsview/qgraphicswidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicswidget.cpp b/src/gui/graphicsview/qgraphicswidget.cpp
index 4c5cffa..8b80bc8 100644
--- a/src/gui/graphicsview/qgraphicswidget.cpp
+++ b/src/gui/graphicsview/qgraphicswidget.cpp
@@ -1067,13 +1067,13 @@ QVariant QGraphicsWidget::itemChange(GraphicsItemChange change, const QVariant &
QApplication::sendEvent(this, &event);
break;
}
- case ItemCursorChange: {
+ case ItemCursorHasChanged: {
// Deliver CursorChange.
QEvent event(QEvent::CursorChange);
QApplication::sendEvent(this, &event);
break;
}
- case ItemToolTipChange: {
+ case ItemToolTipHasChanged: {
// Deliver ToolTipChange.
QEvent event(QEvent::ToolTipChange);
QApplication::sendEvent(this, &event);