import QtQml 2.0
import QOwnNotesTypes 1.0
/**
* This script creates scripting labels
*
*/
Script {
/**
* Initializes the labels
*/
function init() {
script.registerLabel("html-label", "Strong HTML text
with three lines
and a link to a website.");
script.registerLabel("long-label", "another very long text, another very long text, another very long text, another very long text, another very long text, another very long text, another very long text, another very long text, another very long text, another very long text, another very long text that will wrap");
script.registerLabel("counter-label");
}
/**
* This starts a timer that triggers two seconds
*/
property QtObject timer: Timer {
interval: 1000
repeat: true
running: true
property int count: 0
onTriggered: {
count++;
script.setLabelText("counter-label", "count = " + count);
}
}
}