Port to modern SVG instantiation

This commit is contained in:
Nate Graham 2023-08-01 11:51:20 -06:00
parent 6404517976
commit d7e61b30a1

View file

@ -187,10 +187,6 @@ FocusScope {
dim: true
onOpened: forceActiveFocus()
onClosed: root.forceActiveFocus()
KSvg.Svg {
id: layoutsSvg
imagePath: Qt.resolvedUrl("layouts.svg")
}
component LayoutButton: PlasmaComponents.AbstractButton {
id: button
Layout.fillWidth: true
@ -198,7 +194,7 @@ FocusScope {
property alias image: svgItem.elementId
contentItem: KSvg.SvgItem {
id: svgItem
svg: layoutsSvg
imagePath: Qt.resolvedUrl("layouts.svg")
implicitWidth: naturalSize.width
implicitHeight: naturalSize.height
}