src/gui/kernel/qwidget_win.cpp
changeset 7 f7bc934e204c
parent 3 41300fa6a67c
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     8 **
     8 **
  2050 #if !defined(QT_NO_NATIVE_GESTURES)
  2050 #if !defined(QT_NO_NATIVE_GESTURES)
  2051     Q_Q(QWidget);
  2051     Q_Q(QWidget);
  2052     if (!q || !q->isVisible() || !nativeGesturePanEnabled)
  2052     if (!q || !q->isVisible() || !nativeGesturePanEnabled)
  2053         return;
  2053         return;
  2054 
  2054 
       
  2055     if (!QApplicationPrivate::HasTouchSupport)
       
  2056         return;
  2055     QApplicationPrivate *qAppPriv = QApplicationPrivate::instance();
  2057     QApplicationPrivate *qAppPriv = QApplicationPrivate::instance();
  2056     if (!qAppPriv->SetGestureConfig)
  2058     if (!qAppPriv->SetGestureConfig)
  2057         return;
  2059         return;
  2058     WId winid = q->internalWinId();
  2060     WId winid = q->internalWinId();
  2059 
  2061