Avoid setting contentItem on button
This commit is contained in:
parent
6742f35e5d
commit
dfe0c5cbe9
1 changed files with 4 additions and 12 deletions
|
|
@ -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("",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue