diff options
author | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2009-06-05 13:43:31 (GMT) |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2009-06-05 13:46:28 (GMT) |
commit | 1ad2cba32bc34786cdfd92ad16e3212b8830be3d (patch) | |
tree | 5910ae9da891d90c4c4fc98f59c2e76d01009c79 | |
parent | 407a77cb2660cf122b08a388216f3a2da8cfd1c3 (diff) | |
download | Qt-1ad2cba32bc34786cdfd92ad16e3212b8830be3d.zip Qt-1ad2cba32bc34786cdfd92ad16e3212b8830be3d.tar.gz Qt-1ad2cba32bc34786cdfd92ad16e3212b8830be3d.tar.bz2 |
Compilefix for QT_NO_CURSOR in qgraphicsscene.cpp
Reviewed-by: Joerg
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp index 1fc4567..49c2329 100644 --- a/src/gui/graphicsview/qgraphicsscene.cpp +++ b/src/gui/graphicsview/qgraphicsscene.cpp @@ -2924,11 +2924,13 @@ void QGraphicsScene::addItem(QGraphicsItem *item) d->allItemsIgnoreHoverEvents = false; d->enableMouseTrackingOnViews(); } +#ifndef QT_NO_CURSOR if (d->allItemsUseDefaultCursor && item->hasCursor()) { d->allItemsUseDefaultCursor = false; if (d->allItemsIgnoreHoverEvents) // already enabled otherwise d->enableMouseTrackingOnViews(); } +#endif //QT_NO_CURSOR // Update selection lists if (item->isSelected()) |