Mac: Don't register for Pan Gestures.
This will enable touch events for the viewport widget, which has undesired side effects (see task). Fixes a regression from Qt 4. Task-number: QTBUG-38815 Change-Id: I7b9c0d1de985d1c82f946140fecf460fcfc5e686 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
parent
5f7ea1a41a
commit
47a66d5eac
@ -309,7 +309,7 @@ void QAbstractScrollAreaPrivate::init()
|
||||
q->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
|
||||
q->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
layoutChildren();
|
||||
#ifndef Q_WS_MAC
|
||||
#ifndef Q_OS_OSX
|
||||
# ifndef QT_NO_GESTURES
|
||||
viewport->grabGesture(Qt::PanGesture);
|
||||
# endif
|
||||
|
Loading…
Reference in New Issue
Block a user