summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qstandardgestures.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/kernel/qstandardgestures.cpp b/src/gui/kernel/qstandardgestures.cpp
index 1a88429..c4820f0 100644
--- a/src/gui/kernel/qstandardgestures.cpp
+++ b/src/gui/kernel/qstandardgestures.cpp
@@ -82,8 +82,6 @@ QPanGesture::QPanGesture(QWidget *parent)
/*! \internal */
bool QPanGesture::event(QEvent *event)
{
- Q_D(QPanGesture);
-
#ifdef Q_WS_WIN
QApplicationPrivate* getQApplicationPrivateInternal();
switch (event->type()) {
@@ -101,6 +99,7 @@ bool QPanGesture::event(QEvent *event)
#endif
#if defined(Q_OS_MAC) && !defined(QT_MAC_USE_COCOA)
+ Q_D(QPanGesture);
if (event->type() == QEvent::Timer) {
const QTimerEvent *te = static_cast<QTimerEvent *>(event);
if (te->timerId() == d->panFinishedTimer) {