Clean up button

This commit is contained in:
Tobias Fella
2024-03-19 21:31:11 +01:00
parent d7e0954e86
commit 1f85f848e2

View File

@@ -328,16 +328,13 @@ FormCard.FormCardPage {
QQC2.ToolButton {
visible: officalParentDelegate?.space.canSendState("m.space.child") && root.room.canSendState("m.space.parent")
display: QQC2.AbstractButton.IconOnly
action: Kirigami.Action {
id: removeParentAction
text: i18n("Remove parent")
icon.name: "edit-delete-remove"
onTriggered: root.room.removeParent(officalParentDelegate.modelData)
}
QQC2.ToolTip {
text: removeParentAction.text
delay: Kirigami.Units.toolTipDelay
}
text: i18n("Remove parent")
icon.name: "edit-delete-remove"
onClicked: root.room.removeParent(officalParentDelegate.modelData)
QQC2.ToolTip.text: text
QQC2.ToolTip.visible: hovered
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
}
}
}