Remove context menu Loader && disable highlight resize animation for

ListView(#6).
This commit is contained in:
Black Hat
2018-08-05 04:14:45 +08:00
parent e0158daf07
commit 085601f650
2 changed files with 34 additions and 41 deletions

View File

@@ -24,10 +24,7 @@ Item {
MouseArea {
anchors.fill: parent
onPressAndHold: {
menuLoader.sourceComponent = menuComponent
menuLoader.item.popup()
}
onPressAndHold: menuComponent.createObject(this)
Component {
id: menuComponent
@@ -57,14 +54,12 @@ Item {
text: "Redact"
onTriggered: currentRoom.redactEvent(eventId)
}
Component.onCompleted: popup()
}
}
}
Loader {
id: menuLoader
}
Loader {
id: delegateLoader