Avoid setting contentItem on button

This commit is contained in:
Christophe Deschamps 2024-11-14 11:00:12 +01:00
parent 6742f35e5d
commit dfe0c5cbe9

View file

@ -187,18 +187,10 @@ AbstractSettingsLayout {
Layout.rightMargin: 5 * DefaultStyle.dp Layout.rightMargin: 5 * DefaultStyle.dp
Layout.preferredWidth: 24 * DefaultStyle.dp Layout.preferredWidth: 24 * DefaultStyle.dp
Layout.preferredHeight: 24 * DefaultStyle.dp Layout.preferredHeight: 24 * DefaultStyle.dp
contentItem: RowLayout { icon.source: AppIcons.trashCan
Layout.alignment: Qt.AlignRight icon.width: 24 * DefaultStyle.dp
EffectImage { icon.height: 24 * DefaultStyle.dp
imageSource: AppIcons.trashCan contentImageColor: DefaultStyle.danger_500main
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
}
}
onClicked: { onClicked: {
var mainWin = UtilsCpp.getMainWindow() var mainWin = UtilsCpp.getMainWindow()
mainWin.showConfirmationLambdaPopup("", mainWin.showConfirmationLambdaPopup("",