From 1f85f848e2549f445c5f373cbe9cf6e758a26808 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Tue, 19 Mar 2024 21:31:11 +0100 Subject: [PATCH] Clean up button --- src/qml/General.qml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/qml/General.qml b/src/qml/General.qml index 05ce67fcc..fbcab309e 100644 --- a/src/qml/General.qml +++ b/src/qml/General.qml @@ -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 } } }