summaryrefslogtreecommitdiffstats
path: root/src/input/backend/inputhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/backend/inputhandler.cpp')
-rw-r--r--src/input/backend/inputhandler.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/input/backend/inputhandler.cpp b/src/input/backend/inputhandler.cpp
index f3c407f4a..459d41fe2 100644
--- a/src/input/backend/inputhandler.cpp
+++ b/src/input/backend/inputhandler.cpp
@@ -17,11 +17,11 @@
QT_BEGIN_NAMESPACE
-using namespace Qt3DCore;
-
namespace Qt3DInput {
namespace Input {
+using namespace Qt3DCore;
+
class InternalEventFilter : public QObject
{
public:
@@ -42,12 +42,8 @@ protected:
case QEvent::HoverMove: {
const QHoverEvent *he = static_cast<QHoverEvent *>(e);
auto mouseEvent = QT_PREPEND_NAMESPACE(QMouseEvent)(QEvent::MouseMove,
-#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
he->position(),
he->globalPosition(),
-#else
- he->pos(),
-#endif
Qt::NoButton, Qt::NoButton,
he->modifiers());
return processMouseEvent(obj, static_cast<QT_PREPEND_NAMESPACE(QMouseEvent) *>(&mouseEvent));
@@ -351,7 +347,6 @@ bool InternalEventFilter::processKeyEvent(QObject *obj, QT_PREPEND_NAMESPACE(QKe
return false;
}
-
} // namespace Input
} // namespace Qt3DInput