diff options
author | Topi Reinio <topi.reinio@digia.com> | 2014-10-02 10:23:31 +0200 |
---|---|---|
committer | Topi Reiniƶ <topi.reinio@digia.com> | 2014-10-02 10:33:47 +0200 |
commit | 025235998da4871fe8a8dfb97007e64da62a5a68 (patch) | |
tree | 4de928698b1b2f6360bdb16f9585346662ad7116 /src | |
parent | 85f57be3a096cc4f580f30e0eb59de3747f3da03 (diff) | |
download | qtquickcontrols-025235998da4871fe8a8dfb97007e64da62a5a68.tar.gz |
Doc: Fix code snippet in ComboBox documentation
Remove undefined id to make the snippet work.
Task-number: QTBUG-41721
Change-Id: Ia5ba6629ac7e51305fa75261c4a79b06ac43bf2c
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/controls/ComboBox.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controls/ComboBox.qml b/src/controls/ComboBox.qml index 5252b4e5..68429483 100644 --- a/src/controls/ComboBox.qml +++ b/src/controls/ComboBox.qml @@ -93,9 +93,9 @@ import QtQuick.Controls.Private 1.0 ListElement { text: "Coconut"; color: "Brown" } } onAccepted: { - if (editableCombo.find(currentText) === -1) { + if (find(currentText) === -1) { model.append({text: editText}) - currentIndex = editableCombo.find(editText) + currentIndex = find(editText) } } } |