From 9ecf1fd9507101607996e8df50093098edab5d64 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Wed, 2 Sep 2015 16:40:32 +0200 Subject: Controls: move Accessible from QML to C++ Controls 2.0 could be built with QT_NO_ACCESSIBILITY defined. Added a few helper functions for accessible in QQuickControl. Don't set text as Accessible.name for TextArea and TextField. Change-Id: I40383bbcec2f8c742f709bdec0209623f80da449 Reviewed-by: J-P Nurmi --- tests/auto/accessibility/data/checkbox.qml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/auto/accessibility/data/checkbox.qml (limited to 'tests/auto/accessibility/data/checkbox.qml') diff --git a/tests/auto/accessibility/data/checkbox.qml b/tests/auto/accessibility/data/checkbox.qml new file mode 100644 index 00000000..9700663d --- /dev/null +++ b/tests/auto/accessibility/data/checkbox.qml @@ -0,0 +1,13 @@ +import QtQuick 2.5 +import QtQuick.Window 2.2 +import QtQuick.Controls 2.0 + +Window { + visible: true + + CheckBox { + id: checkbox + objectName: "checkbox" + text: "CheckBox" + } +} -- cgit v1.2.3