Add delete button to popup

This currently doesn't have any filtering for power levels, which needs to be fixed.
android
Loren Burkholder 4 years ago
parent 2e7c3d4a2a
commit 2c49c188e3
  1. 20
      resources/qml/MobileMessageContextPopup.qml

@ -178,6 +178,26 @@ Item {
} }
} }
ImageButton {
id: deleteButton
buttonTextColor: colors.buttonText
Layout.minimumWidth: 20
Layout.preferredWidth: 35
Layout.minimumHeight: Layout.minimumWidth
Layout.preferredHeight: Layout.preferredWidth
height: width
Layout.alignment: Qt.AlignHCenter
hoverEnabled: true
image: ":/icons/icons/ui/delete.png"
ToolTip.visible: hovered
ToolTip.text: qsTr("Remove")
onClicked: {
TimelineManager.timeline.redactEvent(row.model.id)
popupRoot.hide()
}
}
EmojiButton { EmojiButton {
id: reactButton id: reactButton

Loading…
Cancel
Save