QOwnNotes/docs/scripting/examples/on-note-opened.qml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
367 B
QML
Raw Permalink Normal View History

import QtQml 2.0
2017-05-20 11:24:18 +02:00
import QOwnNotesTypes 1.0
/**
* This script is an example how to get a notification when a note was opened
*/
QtObject {
/**
* This function is called after a note was opened
*
2017-05-20 11:24:18 +02:00
* @param {Note} note - the note object that was opened
*/
function noteOpenedHook(note) {
script.log(note.fullNoteFilePath);
}
}