diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-12-01 19:05:23 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-12-02 16:11:16 (GMT) |
commit | 592390c1a8d8d5664fc34893da586412b6a1bcf3 (patch) | |
tree | 4fa01aaf95443660d83ff650b667e527cbb7fb6b /src | |
parent | 0b2eab87ad3bd73a0744469a45c29ca098649c9b (diff) | |
download | Qt-592390c1a8d8d5664fc34893da586412b6a1bcf3.zip Qt-592390c1a8d8d5664fc34893da586412b6a1bcf3.tar.gz Qt-592390c1a8d8d5664fc34893da586412b6a1bcf3.tar.bz2 |
Do not enabled Pan gesture by default on Mac.
Enabled Pan gesture makes your widget receive mouse release events while doing
system gestures like two-finger scroll.
Reviewed-by: Richard
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/qabstractscrollarea.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/widgets/qabstractscrollarea.cpp b/src/gui/widgets/qabstractscrollarea.cpp index 35639b7..3cf4e94 100644 --- a/src/gui/widgets/qabstractscrollarea.cpp +++ b/src/gui/widgets/qabstractscrollarea.cpp @@ -294,7 +294,9 @@ void QAbstractScrollAreaPrivate::init() q->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken); q->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); layoutChildren(); +#ifndef Q_WS_MAC viewport->grabGesture(Qt::PanGesture); +#endif } #ifdef Q_WS_WIN @@ -543,7 +545,9 @@ void QAbstractScrollArea::setViewport(QWidget *widget) d->viewport->setParent(this); d->viewport->setFocusProxy(this); d->viewport->installEventFilter(d->viewportFilter.data()); +#ifndef Q_WS_MAC d->viewport->grabGesture(Qt::PanGesture); +#endif d->layoutChildren(); if (isVisible()) d->viewport->show(); |