Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-21 10:12:24

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QTESTTOUCH_H
0005 #define QTESTTOUCH_H
0006 
0007 #if 0
0008 // inform syncqt
0009 #pragma qt_no_master_include
0010 #endif
0011 
0012 #include <QtTest/qttestglobal.h>
0013 #include <QtTest/qtestassert.h>
0014 #include <QtTest/qtestsystem.h>
0015 #include <QtTest/qtestspontaneevent.h>
0016 #include <QtCore/qmap.h>
0017 #include <QtGui/qevent.h>
0018 #include <QtGui/qpointingdevice.h>
0019 #include <QtGui/qwindow.h>
0020 #include <QtGui/qpointingdevice.h>
0021 #ifdef QT_WIDGETS_LIB
0022 #include <QtWidgets/qwidget.h>
0023 #include <QtWidgets/qtestsupport_widgets.h>
0024 #else
0025 #include <QtGui/qtestsupport_gui.h>
0026 #endif
0027 
0028 QT_BEGIN_NAMESPACE
0029 
0030 namespace QTest
0031 {
0032 #if defined(QT_WIDGETS_LIB) || defined(Q_QDOC)
0033     inline
0034     QTouchEventWidgetSequence touchEvent(QWidget *widget,
0035                                    QPointingDevice *device,
0036                                    bool autoCommit = true)
0037     {
0038         return QTouchEventWidgetSequence(widget, device, autoCommit);
0039     }
0040 #endif
0041     inline
0042     QTouchEventSequence touchEvent(QWindow *window,
0043                                    QPointingDevice *device,
0044                                    bool autoCommit = true)
0045     {
0046         return QTouchEventSequence(window, device, autoCommit);
0047     }
0048 
0049 }
0050 
0051 QT_END_NAMESPACE
0052 
0053 #endif // QTESTTOUCH_H