diff options
Diffstat (limited to 'resources/qml/Completer.qml')
-rw-r--r-- | resources/qml/Completer.qml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/resources/qml/Completer.qml b/resources/qml/Completer.qml index ff342be5..27322172 100644 --- a/resources/qml/Completer.qml +++ b/resources/qml/Completer.qml @@ -11,6 +11,7 @@ Popup { property string completerName property var completer property bool bottomToTop: true + property alias count: listView.count signal completionClicked(string completion) @@ -57,9 +58,9 @@ Popup { completer = undefined; } } - padding: 0 + padding: 1 onAboutToShow: currentIndex = -1 - height: listView.contentHeight + height: listView.contentHeight + 2 // + 2 for the padding on top and bottom Connections { onTimelineChanged: completer = null @@ -84,7 +85,7 @@ Popup { anchors.fill: parent hoverEnabled: true - onEntered: popup.currentIndex = model.index + onPositionChanged: popup.currentIndex = model.index onClicked: popup.completionClicked(completer.completionAt(model.index)) Ripple { @@ -183,6 +184,7 @@ Popup { color: colors.base implicitHeight: popup.contentHeight implicitWidth: popup.contentWidth + border.color: colors.mid } } |