From 84fb8c5ec909fa29512236aed3a77f595a2ac891 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Tue, 18 Apr 2017 13:21:26 +0200 Subject: 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 Reviewed-by: Bo Thorsen Reviewed-by: Rainer Keller --- src/gui/doc/qtgui.qdocconf | 3 ++- src/gui/kernel/qtouchdevice.cpp | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/doc/qtgui.qdocconf b/src/gui/doc/qtgui.qdocconf index 94574a314c..bac93af775 100644 --- a/src/gui/doc/qtgui.qdocconf +++ b/src/gui/doc/qtgui.qdocconf @@ -39,7 +39,8 @@ depends += \ qtquick \ qtwidgets \ qtdoc \ - qmake + qmake \ + qttestlib headerdirs += .. diff --git a/src/gui/kernel/qtouchdevice.cpp b/src/gui/kernel/qtouchdevice.cpp index 97cc8d179d..0f13412fb1 100644 --- a/src/gui/kernel/qtouchdevice.cpp +++ b/src/gui/kernel/qtouchdevice.cpp @@ -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 QTouchDevice::devices() { -- cgit v1.2.3