Remove context menu Loader && disable highlight resize animation for
ListView(#6).
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user