PlasmaCore.Svg counterpart

This commit is contained in:
Sam Hadow 2024-03-13 00:25:12 +01:00
parent 26755c8d86
commit eabc0e99ad
4 changed files with 10 additions and 7 deletions

View File

@ -17,6 +17,7 @@
*/
import QtQuick 2.0
import org.kde.plasma.core as PlasmaCore
import org.kde.ksvg as KSvg
import org.kde.kirigami as Kirigami
import org.kde.plasma.components as PlasmaComponents
@ -58,7 +59,7 @@ Item {
}
}
PlasmaCore.SvgItem {
KSvg.SvgItem {
id: arrowSvg
anchors.left: parent.left
@ -66,7 +67,7 @@ Item {
height: crumbRoot.height / 2
width: visible ? height : 0
svg: PlasmaCore.Svg {
svg: KSvg.Svg {
imagePath: "icons/go"
}
elementId: LayoutMirroring.enabled ? "go-previous" : "go-next"

View File

@ -23,6 +23,7 @@ import QtQuick 2.3
import org.kde.plasma.plasmoid 2.0
import QtQuick.Layouts 1.1
import org.kde.plasma.core as PlasmaCore
import org.kde.ksvg as KSvg
import org.kde.plasma.plasma5support as Plasma5Support
import org.kde.kirigami as Kirigami
import org.kde.plasma.components as PlasmaComponents
@ -109,7 +110,7 @@ Item {
connectedSources: ["PowerDevil"]
}
PlasmaCore.Svg {
KSvg.Svg {
id: arrowsSvg
imagePath: "widgets/arrows"
@ -436,9 +437,9 @@ Item {
}
} // tabBar
PlasmaCore.SvgItem {
KSvg.SvgItem {
id: tabBarSeparator
svg: PlasmaCore.Svg {
svg: KSvg.Svg {
id: tabBarSeparatorLine
imagePath: "widgets/line"
}

View File

@ -20,6 +20,7 @@
*/
import QtQuick 2.0
import org.kde.plasma.core as PlasmaCore
import org.kde.ksvg as KSvg
import org.kde.kirigami as Kirigami
import org.kde.plasma.components as PlasmaComponents
import org.kde.draganddrop 2.0
@ -150,7 +151,7 @@ Item {
horizontalAlignment: Text.AlignLeft
}
PlasmaCore.SvgItem {
KSvg.SvgItem {
id: arrow
anchors {

View File

@ -43,7 +43,7 @@ PlasmoidItem {
Plasmoid.switchWidth: Kirigami.Units.gridUnit * 20
Plasmoid.switchHeight: Kirigami.Units.gridUnit * 30
Plasmoid.fullRepresentation: FullRepresentation {}
Plasmoid.icon: plasmoid.configuration.icon