Doc: Remove broken link to QWindowSystemInterface::registerTouchDevice()

Mention that it is a private function. Also mention using
QTest::createTouchDevice() for adding simulated touch screens
to autotests.

Task-number: QTBUG-26647
Change-Id: I08c12225768e76b1b9e3fc0fda00af86d44ca766
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Bo Thorsen <bo@vikingsoft.eu>
Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
This commit is contained in:
Leena Miettinen 2017-04-18 13:21:26 +02:00
parent db2de20c59
commit 84fb8c5ec9
2 changed files with 6 additions and 2 deletions

View File

@ -39,7 +39,8 @@ depends += \
qtquick \
qtwidgets \
qtdoc \
qmake
qmake \
qttestlib
headerdirs += ..

View File

@ -215,7 +215,10 @@ static void cleanupDevicesList()
/*!
Returns a list of all registered devices.
\note The returned list cannot be used to add new devices. Use QWindowSystemInterface::registerTouchDevice() instead.
\note The returned list cannot be used to add new devices. To add a simulated
touch screen for an autotest, QTest::createTouchDevice() can be used.
To add real touch screens to QPA plugins, the private
\c QWindowSystemInterface::registerTouchDevice() function can be used.
*/
QList<const QTouchDevice *> QTouchDevice::devices()
{