Skip to content

Commit 984d61c

Browse files
committed
Fix compile error for Qt5
1 parent 0f7065b commit 984d61c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

inc/extension_qt/q_view_executor.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <QtCore/QDebug>
1414
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1515
#include <QtWidgets/QWidget>
16+
#include <QtGui/QTouchDevice>
1617
#else
1718
#include <QtGui/QWidget>
1819
#endif
@@ -49,6 +50,11 @@ class QViewCmdExecutor : public ViewCmdExecutor {
4950
QRect ConvertRectToQRect(const Rect &rect);
5051
QPoint ConvertPointToQPoint(const Point &p);
5152
Qt::MouseButton ConvertMouseButtonToQtMouseButton(MouseButton button);
53+
54+
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
55+
QTouchDevice touchDevice;
56+
#endif
57+
5258
private:
5359
DISALLOW_COPY_AND_ASSIGN(QViewCmdExecutor);
5460
};

0 commit comments

Comments
 (0)