Add delete button to popup

This currently doesn't have any filtering for power levels, which needs to be fixed.
This commit is contained in:
Loren Burkholder 2021-04-02 18:29:20 -04:00
parent 2e7c3d4a2a
commit 2c49c188e3

View file

@ -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 {
id: reactButton