Little fix for VC++
svn path=/trunk/KDE/kdelibs/; revision=1094583
This commit is contained in:
parent
5506f87e55
commit
46eb95e995
@ -164,9 +164,9 @@ bool AnimableGraphicsWebView::event(QEvent * 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);
|
||||
setZoomFactor(zoomFactor() * pinchGesture->scaleFactor());
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ protected:
|
||||
void wheelEvent(QGraphicsSceneWheelEvent *event);
|
||||
|
||||
private:
|
||||
bool gestureEvent(QGestureEvent *event);
|
||||
void gestureEvent(QGestureEvent *event);
|
||||
bool m_dragToScroll;
|
||||
QPointF m_lastScrollPosition;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user