From dfe0c5cbe936ccf22a8ad5faf13aec798cab8939 Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Thu, 14 Nov 2024 11:00:12 +0100 Subject: [PATCH] Avoid setting contentItem on button --- .../Settings/AccountSettingsGeneralLayout.qml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Linphone/view/Page/Layout/Settings/AccountSettingsGeneralLayout.qml b/Linphone/view/Page/Layout/Settings/AccountSettingsGeneralLayout.qml index 96bebad80..58ea74e7f 100644 --- a/Linphone/view/Page/Layout/Settings/AccountSettingsGeneralLayout.qml +++ b/Linphone/view/Page/Layout/Settings/AccountSettingsGeneralLayout.qml @@ -187,18 +187,10 @@ AbstractSettingsLayout { Layout.rightMargin: 5 * DefaultStyle.dp Layout.preferredWidth: 24 * DefaultStyle.dp Layout.preferredHeight: 24 * DefaultStyle.dp - contentItem: RowLayout { - Layout.alignment: Qt.AlignRight - EffectImage { - imageSource: AppIcons.trashCan - width: 24 * DefaultStyle.dp - height: 24 * DefaultStyle.dp - Layout.preferredWidth: 24 * DefaultStyle.dp - Layout.preferredHeight: 24 * DefaultStyle.dp - fillMode: Image.PreserveAspectFit - colorizationColor: DefaultStyle.danger_500main - } - } + icon.source: AppIcons.trashCan + icon.width: 24 * DefaultStyle.dp + icon.height: 24 * DefaultStyle.dp + contentImageColor: DefaultStyle.danger_500main onClicked: { var mainWin = UtilsCpp.getMainWindow() mainWin.showConfirmationLambdaPopup("",