diff options
author | jaanttil <janne.anttila@digia.com> | 2011-11-02 07:26:34 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-03 14:25:17 (GMT) |
commit | 4c91eca4a816c39ae336c67b5200aaf83e671c48 (patch) | |
tree | d62ea08263bdc27c779d209941fb5f0feede3b94 /src/gui/graphicsview | |
parent | 19e1be4814cb2ddf42a75fd6704aad329a93d954 (diff) | |
download | Qt-4c91eca4a816c39ae336c67b5200aaf83e671c48.zip Qt-4c91eca4a816c39ae336c67b5200aaf83e671c48.tar.gz Qt-4c91eca4a816c39ae336c67b5200aaf83e671c48.tar.bz2 |
Fixed DEBUG macro redefinition when compiling for WEC7 with MSVC.
DEBUG macro is defined from command line for debug builds in WEC7.
Changed graphcisscene internal macro to have different name.
Task-number: QTBUG-22512
Change-Id: I3d2bb8b7a2741fe34397a1c3cc268c1f6c5593b3
Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp index 3c18584..14c0f3c 100644 --- a/src/gui/graphicsview/qgraphicsscene.cpp +++ b/src/gui/graphicsview/qgraphicsscene.cpp @@ -260,9 +260,9 @@ // #define GESTURE_DEBUG #ifndef GESTURE_DEBUG -# define DEBUG if (0) qDebug +# define G_DEBUG if (0) qDebug #else -# define DEBUG qDebug +# define G_DEBUG qDebug #endif QT_BEGIN_NAMESPACE @@ -6158,7 +6158,7 @@ void QGraphicsScenePrivate::gestureEventHandler(QGestureEvent *event) return; QList<QGesture *> allGestures = event->gestures(); - DEBUG() << "QGraphicsScenePrivate::gestureEventHandler:" + G_DEBUG() << "QGraphicsScenePrivate::gestureEventHandler:" << "Gestures:" << allGestures; QSet<QGesture *> startedGestures; @@ -6189,7 +6189,7 @@ void QGraphicsScenePrivate::gestureEventHandler(QGestureEvent *event) &normalGestures, &conflictedGestures); cachedTargetItems = cachedItemGestures.keys(); qSort(cachedTargetItems.begin(), cachedTargetItems.end(), qt_closestItemFirst); - DEBUG() << "QGraphicsScenePrivate::gestureEventHandler:" + G_DEBUG() << "QGraphicsScenePrivate::gestureEventHandler:" << "Normal gestures:" << normalGestures << "Conflicting gestures:" << conflictedGestures; @@ -6204,7 +6204,7 @@ void QGraphicsScenePrivate::gestureEventHandler(QGestureEvent *event) if (gestures.isEmpty()) continue; - DEBUG() << "QGraphicsScenePrivate::gestureEventHandler:" + G_DEBUG() << "QGraphicsScenePrivate::gestureEventHandler:" << "delivering override to" << item.data() << gestures; // send gesture override @@ -6230,7 +6230,7 @@ void QGraphicsScenePrivate::gestureEventHandler(QGestureEvent *event) it.value().remove(g); cachedItemGestures[item.data()].insert(g); } - DEBUG() << "QGraphicsScenePrivate::gestureEventHandler:" + G_DEBUG() << "QGraphicsScenePrivate::gestureEventHandler:" << "override was accepted:" << g << item.data(); } @@ -6276,7 +6276,7 @@ void QGraphicsScenePrivate::gestureEventHandler(QGestureEvent *event) if (flags & Qt::IgnoredGesturesPropagateToParent) parentPropagatedGestures.insert(gesture); } else { - DEBUG() << "QGraphicsScenePrivate::gestureEventHandler:" + G_DEBUG() << "QGraphicsScenePrivate::gestureEventHandler:" << "no target for" << gesture << "at" << gesture->hotSpot() << gesture->d_func()->sceneHotSpot; } @@ -6294,7 +6294,7 @@ void QGraphicsScenePrivate::gestureEventHandler(QGestureEvent *event) cachedAlreadyDeliveredGestures[receiver.data()] += gestures; const bool isPanel = receiver.data()->isPanel(); - DEBUG() << "QGraphicsScenePrivate::gestureEventHandler:" + G_DEBUG() << "QGraphicsScenePrivate::gestureEventHandler:" << "delivering to" << receiver.data() << gestures; QGestureEvent ev(gestures.toList()); @@ -6362,7 +6362,7 @@ void QGraphicsScenePrivate::gestureEventHandler(QGestureEvent *event) cachedTargetItems = targetsSet.toList(); qSort(cachedTargetItems.begin(), cachedTargetItems.end(), qt_closestItemFirst); - DEBUG() << "QGraphicsScenePrivate::gestureEventHandler:" + G_DEBUG() << "QGraphicsScenePrivate::gestureEventHandler:" << "new targets:" << cachedTargetItems; i = -1; // start delivery again continue; @@ -6371,7 +6371,7 @@ void QGraphicsScenePrivate::gestureEventHandler(QGestureEvent *event) foreach (QGesture *g, startedGestures) { if (g->gestureCancelPolicy() == QGesture::CancelAllInContext) { - DEBUG() << "lets try to cancel some"; + G_DEBUG() << "lets try to cancel some"; // find gestures in context in Qt::GestureStarted or Qt::GestureUpdated state and cancel them cancelGesturesForChildren(g); } @@ -6410,7 +6410,7 @@ void QGraphicsScenePrivate::cancelGesturesForChildren(QGesture *original) QGraphicsObject *item = iter.value(); // note that we don't touch the gestures for our originalItem if (item != originalItem && originalItem->isAncestorOf(item)) { - DEBUG() << " found a gesture to cancel" << iter.key(); + G_DEBUG() << " found a gesture to cancel" << iter.key(); iter.key()->d_func()->state = Qt::GestureCanceled; canceledGestures << iter.key(); } |