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.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/input/backend/inputhandler.cpp b/src/input/backend/inputhandler.cpp
index 452fe0e8f..aa42577dc 100644
--- a/src/input/backend/inputhandler.cpp
+++ b/src/input/backend/inputhandler.cpp
@@ -238,6 +238,16 @@ void InputHandler::setEventSourceHelper(EventSourceSetterHelper *helper)
m_eventSourceSetter.reset(helper);
}
+void InputHandler::updateEventSource()
+{
+ if (m_settings != Q_NULLPTR) {
+ // Will be updated only if eventSource is different than
+ // what was set last
+ QObject *eventSource = m_settings->eventSource();
+ m_eventSourceSetter->setEventSource(eventSource);
+ }
+}
+
} // namespace Input
} // namespace Qt3DInput