Plasmoid templates: use the image which is part of the package (again)

This commit is contained in:
Friedrich W. H. Kossebau 2017-05-19 14:26:08 +02:00
parent 4d5793c28a
commit 801724eb01
2 changed files with 12 additions and 4 deletions

View File

@ -26,10 +26,14 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
Item {
Plasmoid.fullRepresentation: ColumnLayout {
anchors.fill: parent
PlasmaCore.IconItem {
source: "kde"
Image {
Layout.fillHeight: true
Layout.fillWidth: true
fillMode: Image.PreserveAspectFit
source: "../images/pairs.svgz"
}
PlasmaComponents.Label {
Layout.alignment: Qt.AlignCenter
text: plasmoid.nativeInterface.nativeText
}
}

View File

@ -26,10 +26,14 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
Item {
Plasmoid.fullRepresentation: ColumnLayout {
anchors.fill: parent
PlasmaCore.IconItem {
source: "kde"
Image {
Layout.fillHeight: true
Layout.fillWidth: true
fillMode: Image.PreserveAspectFit
source: "../images/pairs.svgz"
}
PlasmaComponents.Label {
Layout.alignment: Qt.AlignCenter
text: "This is Plasma!"
}
}