Clean up button
This commit is contained in:
@@ -328,16 +328,13 @@ FormCard.FormCardPage {
|
|||||||
QQC2.ToolButton {
|
QQC2.ToolButton {
|
||||||
visible: officalParentDelegate?.space.canSendState("m.space.child") && root.room.canSendState("m.space.parent")
|
visible: officalParentDelegate?.space.canSendState("m.space.child") && root.room.canSendState("m.space.parent")
|
||||||
display: QQC2.AbstractButton.IconOnly
|
display: QQC2.AbstractButton.IconOnly
|
||||||
action: Kirigami.Action {
|
text: i18n("Remove parent")
|
||||||
id: removeParentAction
|
icon.name: "edit-delete-remove"
|
||||||
text: i18n("Remove parent")
|
onClicked: root.room.removeParent(officalParentDelegate.modelData)
|
||||||
icon.name: "edit-delete-remove"
|
|
||||||
onTriggered: root.room.removeParent(officalParentDelegate.modelData)
|
QQC2.ToolTip.text: text
|
||||||
}
|
QQC2.ToolTip.visible: hovered
|
||||||
QQC2.ToolTip {
|
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
|
||||||
text: removeParentAction.text
|
|
||||||
delay: Kirigami.Units.toolTipDelay
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user