summaryrefslogtreecommitdiffstats
path: root/src/input/frontend/qkeyboardhandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/frontend/qkeyboardhandler.h')
-rw-r--r--src/input/frontend/qkeyboardhandler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input/frontend/qkeyboardhandler.h b/src/input/frontend/qkeyboardhandler.h
index 6dac60c37..ba6119bc0 100644
--- a/src/input/frontend/qkeyboardhandler.h
+++ b/src/input/frontend/qkeyboardhandler.h
@@ -56,7 +56,9 @@ class Q_3DINPUTSHARED_EXPORT QKeyboardHandler : public Qt3DCore::QComponent
Q_OBJECT
Q_PROPERTY(Qt3DInput::QKeyboardDevice *sourceDevice READ sourceDevice WRITE setSourceDevice NOTIFY sourceDeviceChanged)
Q_PROPERTY(bool focus READ focus WRITE setFocus NOTIFY focusChanged)
+#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
Q_MOC_INCLUDE("Qt3DInput/qkeyboarddevice.h")
+#endif
public:
explicit QKeyboardHandler(QNode *parent = nullptr);
~QKeyboardHandler();