mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 19:38:48 +03:00
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:
parent
2e7c3d4a2a
commit
2c49c188e3
1 changed files with 20 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue