summaryrefslogtreecommitdiffstats
path: root/src/input/frontend/qkeyboarddevice.cpp
diff options
context:
space:
mode:
authorColin Ogilvie <colin.ogilvie@kdab.com>2016-05-26 12:42:42 +0100
committerJani Heikkinen <jani.heikkinen@qt.io>2016-06-03 06:27:56 +0000
commit56593e2414c9c530f7abd4d7ea636b5cd2fda26f (patch)
tree17ed08884c438610575f2623c4dad4a4370b0139 /src/input/frontend/qkeyboarddevice.cpp
parentbbb264ad66ca590513dc297821aed26d39d32008 (diff)
More doc for input Module
Task-number: QTBUG-46037 Change-Id: Ifc90bdc84bfd44e29e9287c1e7d24108b36e900d Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/input/frontend/qkeyboarddevice.cpp')
-rw-r--r--src/input/frontend/qkeyboarddevice.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/input/frontend/qkeyboarddevice.cpp b/src/input/frontend/qkeyboarddevice.cpp
index dd0a1df9a..b2c0975ee 100644
--- a/src/input/frontend/qkeyboarddevice.cpp
+++ b/src/input/frontend/qkeyboarddevice.cpp
@@ -203,7 +203,8 @@ QKeyboardDevicePrivate::QKeyboardDevicePrivate()
/*!
\class Qt3DInput::QKeyboardDevice
\inmodule Qt3DInput
- \brief A QKeyboardDevice class.
+ \brief QKeyboardDevice is in charge of dispatching keyboard events to
+ attached QQKeyboardHandler objects.
\since 5.5
*/
@@ -307,6 +308,7 @@ QKeyboardDevice::QKeyboardDevice(QKeyboardDevicePrivate &dd, QNode *parent)
{
}
+/*! \internal */
void QKeyboardDevice::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &change)
{
Q_D(QKeyboardDevice);
@@ -316,7 +318,9 @@ void QKeyboardDevice::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &change)
setActiveInput(qobject_cast<QKeyboardHandler *>(d->scene()->lookupNode(activeInputId)));
}
}
-
+/*!
+ * Set the active input to \a activeInput
+ */
void QKeyboardDevice::setActiveInput(QKeyboardHandler *activeInput)
{
Q_D(QKeyboardDevice);