Remove call to non-existing function close() in QML ComboBox

This causes the following error:

ComboBox.qml:53: ReferenceError: close is not defined

And seems to be definitely incorrect.
This commit is contained in:
Dale Glass 2023-01-06 17:30:13 +01:00
parent 4a7e9c77f2
commit 4fff634d50

View file

@ -50,8 +50,8 @@ FocusScope {
function previousItem() { root.currentHighLightedIndex = (root.currentHighLightedIndex + comboBox.count - 1) % comboBox.count; }
function nextItem() { root.currentHighLightedIndex = (root.currentHighLightedIndex + comboBox.count + 1) % comboBox.count; }
function selectCurrentItem() { root.currentIndex = root.currentHighLightedIndex; close(); /*hideList();*/ }
function selectSpecificItem(index) { root.currentIndex = index; close();/*hideList();*/ }
function selectCurrentItem() { root.currentIndex = root.currentHighLightedIndex; /*hideList();*/ }
function selectSpecificItem(index) { root.currentIndex = index; /*hideList();*/ }
Keys.onUpPressed: previousItem();
Keys.onDownPressed: nextItem();