diff options
author | Liang Qi <liang.qi@theqtcompany.com> | 2015-09-02 16:40:32 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@theqtcompany.com> | 2015-09-14 18:51:51 +0000 |
commit | 9ecf1fd9507101607996e8df50093098edab5d64 (patch) | |
tree | 179df2c6dbb647b6cad44967148c7cd63e68ec6d /src/imports/controls/ToggleButton.qml | |
parent | 8957158ce42ffe1823b7ae1304a48bfdca40ec86 (diff) |
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 <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/ToggleButton.qml')
-rw-r--r-- | src/imports/controls/ToggleButton.qml | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/imports/controls/ToggleButton.qml b/src/imports/controls/ToggleButton.qml index 8a732f02..e533b154 100644 --- a/src/imports/controls/ToggleButton.qml +++ b/src/imports/controls/ToggleButton.qml @@ -49,12 +49,6 @@ T.ToggleButton { Math.max(label ? label.implicitHeight : 0, indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding) - Accessible.name: text - Accessible.checkable: true - Accessible.checked: checked - Accessible.pressed: pressed - Accessible.role: Accessible.Button - padding: 6 spacing: 6 |