Add ripple to completer

This commit is contained in:
Joseph Donofry 2021-01-11 20:22:40 -05:00
parent 9a604d3821
commit 9be466754e
No known key found for this signature in database
GPG Key ID: E8A1D78EF044B0CB
1 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,4 @@
import "./ui"
import QtQuick 2.9 import QtQuick 2.9
import QtQuick.Controls 2.3 import QtQuick.Controls 2.3
import QtQuick.Layouts 1.2 import QtQuick.Layouts 1.2
@ -79,10 +80,18 @@ Popup {
implicitWidth: chooser.childrenRect.width + 4 implicitWidth: chooser.childrenRect.width + 4
MouseArea { MouseArea {
id: mouseArea
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
onEntered: popup.currentIndex = model.index onEntered: popup.currentIndex = model.index
onClicked: popup.completionClicked(completer.completionAt(model.index)) onClicked: popup.completionClicked(completer.completionAt(model.index))
Ripple {
rippleTarget: mouseArea
color: Qt.rgba(colors.base.r, colors.base.g, colors.base.b, 0.5)
}
} }
DelegateChooser { DelegateChooser {