Controls: Fixed support for Keys attached property on controls allowing text input
authorLiang Qi <liang.qi@digia.com>
Tue, 21 Jan 2014 12:07:21 +0000 (13:07 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 22 Jan 2014 15:09:31 +0000 (16:09 +0100)
commit5dc805c86077ee9cd10af530f802fdda879cfb6a
tree44a13a83b6e79d0e81420b2167eaf20b018f01c6
parent5e022a65531b92d4d2f4cf9a0dd6b843aadf3797
Controls: Fixed support for Keys attached property on controls allowing text input

By forwarding key events from the internal control.

It includes TextField, TextArea, ComboBox, SpinBox. The key events from
internal are Keys.forwardTo controls, then user could customize their
own behavior for those controls.

Autotest are included.

[ChangeLog][QtQuickControls] Fixed support for Keys attached property on
controls allowing text input, by forwarding key events from the internal
control.

Task-number: QTBUG-33493
Task-number: QTBUG-34101
Task-number: QTBUG-35763
Change-Id: I00ea131160e55048b34fe0713e1ee02ff9472f05
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
12 files changed:
src/controls/ComboBox.qml
src/controls/SpinBox.qml
src/controls/TextArea.qml
src/controls/TextField.qml
tests/auto/controls/data/combobox/cb_keys.qml [new file with mode: 0644]
tests/auto/controls/data/spinbox/sb_keys.qml [new file with mode: 0644]
tests/auto/controls/data/textarea/ta_keys.qml [new file with mode: 0644]
tests/auto/controls/data/textfield/tf_keys.qml [new file with mode: 0644]
tests/auto/controls/data/tst_combobox.qml
tests/auto/controls/data/tst_spinbox.qml
tests/auto/controls/data/tst_textarea.qml
tests/auto/controls/data/tst_textfield.qml