Skip to content
Snippets Groups Projects
Commit 9f160fb5 authored by Joe Donofry's avatar Joe Donofry
Browse files

Restore MouseArea

parent 935cb9a5
No related branches found
No related tags found
1 merge request!20Completer scrolling
Pipeline #2425 failed
......@@ -110,20 +110,21 @@ Popup {
height: chooser.child.implicitHeight + 2 * popup.rowMargin
implicitWidth: fullWidth ? popup.contentWidth : chooser.child.implicitWidth + 4
HoverHandler {
id: hover
onHoveredChanged: {
if (hovered) popup.currentIndex = model.index;
}
}
MouseArea {
id: mouseArea
TapHandler {
onSingleTapped: {
anchors.fill: parent
hoverEnabled: true
onPositionChanged: popup.currentIndex = model.index
onClicked: {
popup.completionClicked(completer.completionAt(model.index));
if (popup.completerName == "room")
popup.completionSelected(model.roomid);
}
Ripple {
rippleTarget: mouseArea
color: Qt.rgba(Nheko.colors.base.r, Nheko.colors.base.g, Nheko.colors.base.b, 0.5)
}
}
DelegateChooser {
id: chooser
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment