Fix notes example, svg loading was wrong

This commit is contained in:
Sebastian Kügler 2014-02-07 03:32:20 +01:00
parent b2ead1fe09
commit 462407eba7

View File

@ -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
}