summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-08-04 09:47:45 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-08-04 09:47:45 (GMT)
commit54d5c7eae26c025015f08bf06d0f9268175317e8 (patch)
tree19dea809d3c3e7f6b799c1deb647a7ebe833010e /src/gui/kernel
parentbaf3ec81ca5d5cd38b54dc853c12109956a98cb9 (diff)
downloadQt-54d5c7eae26c025015f08bf06d0f9268175317e8.zip
Qt-54d5c7eae26c025015f08bf06d0f9268175317e8.tar.gz
Qt-54d5c7eae26c025015f08bf06d0f9268175317e8.tar.bz2
fix warning on MSVC
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) {