2013-09-20 12:59:35 +02:00
|
|
|
/*
|
2020-08-13 19:08:54 +00:00
|
|
|
SPDX-FileCopyrightText: 2013 Marco Martin <mart@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: LGPL-2.0-or-later
|
|
|
|
*/
|
2013-09-20 12:59:35 +02:00
|
|
|
|
2014-02-07 03:32:20 +01:00
|
|
|
import QtQuick 2.1
|
|
|
|
import QtQuick.Layouts 1.1
|
2014-02-04 17:29:28 +01:00
|
|
|
import org.kde.plasma.plasmoid 2.0
|
2013-09-20 12:59:35 +02:00
|
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
|
|
|
import org.kde.plasma.components 2.0 as PlasmaComponents
|
|
|
|
|
|
|
|
PlasmaCore.SvgItem {
|
2014-02-04 17:29:28 +01:00
|
|
|
Layout.minimumWidth: 150
|
|
|
|
Layout.minimumHeight: 150
|
2014-02-07 03:32:20 +01:00
|
|
|
svg: PlasmaCore.Svg { imagePath: "widgets/notes" }
|
2013-09-20 12:59:35 +02:00
|
|
|
elementId: "yellow-notes"
|
|
|
|
|
|
|
|
Connections {
|
|
|
|
target: plasmoid
|
|
|
|
onExternalData: {
|
|
|
|
if (mimetype === "text/plain") {
|
|
|
|
noteText.text = data
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
PlasmaComponents.TextArea {
|
|
|
|
id: noteText
|
|
|
|
anchors.fill: parent
|
2014-02-07 03:32:20 +01:00
|
|
|
anchors.margins: 20
|
2013-09-20 12:59:35 +02:00
|
|
|
text: plasmoid.configuration.Text
|
|
|
|
onTextChanged: plasmoid.configuration.Text = text
|
|
|
|
}
|
|
|
|
}
|