From 462407eba7cd5dda32043dd23ae9aceeb0e128f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Fri, 7 Feb 2014 03:32:20 +0100 Subject: [PATCH] Fix notes example, svg loading was wrong --- examples/applets/notes/contents/ui/main.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/applets/notes/contents/ui/main.qml b/examples/applets/notes/contents/ui/main.qml index b74e15203..a3bdb9879 100644 --- a/examples/applets/notes/contents/ui/main.qml +++ b/examples/applets/notes/contents/ui/main.qml @@ -17,7 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import QtQuick 2.0 +import QtQuick 2.1 +import QtQuick.Layouts 1.1 import org.kde.plasma.plasmoid 2.0 import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.components 2.0 as PlasmaComponents @@ -25,7 +26,7 @@ import org.kde.plasma.components 2.0 as PlasmaComponents PlasmaCore.SvgItem { Layout.minimumWidth: 150 Layout.minimumHeight: 150 - svg: PlasmaCore.Svg("widgets/notes") + svg: PlasmaCore.Svg { imagePath: "widgets/notes" } elementId: "yellow-notes" Connections { @@ -40,6 +41,7 @@ PlasmaCore.SvgItem { PlasmaComponents.TextArea { id: noteText anchors.fill: parent + anchors.margins: 20 text: plasmoid.configuration.Text onTextChanged: plasmoid.configuration.Text = text }