Little fix for VC++

svn path=/trunk/KDE/kdelibs/; revision=1094583
This commit is contained in:
Davide Bettio 2010-02-22 23:04:46 +00:00
parent 5506f87e55
commit 46eb95e995
2 changed files with 3 additions and 3 deletions

View File

@ -164,9 +164,9 @@ bool AnimableGraphicsWebView::event(QEvent * event)
return KGraphicsWebView::event(event); return KGraphicsWebView::event(event);
} }
bool AnimableGraphicsWebView::gestureEvent(QGestureEvent *event) void AnimableGraphicsWebView::gestureEvent(QGestureEvent *event)
{ {
if (QGesture *pinch = event->gesture(Qt::PinchGesture)){ if (QGesture *pinch == event->gesture(Qt::PinchGesture)){
QPinchGesture *pinchGesture = static_cast<QPinchGesture *>(pinch); QPinchGesture *pinchGesture = static_cast<QPinchGesture *>(pinch);
setZoomFactor(zoomFactor() * pinchGesture->scaleFactor()); setZoomFactor(zoomFactor() * pinchGesture->scaleFactor());
} }

View File

@ -60,7 +60,7 @@ protected:
void wheelEvent(QGraphicsSceneWheelEvent *event); void wheelEvent(QGraphicsSceneWheelEvent *event);
private: private:
bool gestureEvent(QGestureEvent *event); void gestureEvent(QGestureEvent *event);
bool m_dragToScroll; bool m_dragToScroll;
QPointF m_lastScrollPosition; QPointF m_lastScrollPosition;
}; };