mirror of
https://github.com/marty-oehme/scripts.git
synced 2025-12-08 04:52:45 +00:00
added an example scrip
This commit is contained in:
parent
2c9569282a
commit
1545a4c8a6
2 changed files with 22 additions and 0 deletions
7
example-script/info.json
Normal file
7
example-script/info.json
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"name": "Example script",
|
||||
"identifier": "example-script",
|
||||
"script": "example-script.qml",
|
||||
"version": "0.0.1",
|
||||
"description" : "Use this script to start a new script you want to submit to the script repository.\\n\\nJust copy the whole 'example-script' folder and rename it and also the 'example-script.qml'"
|
||||
}
|
||||
15
example-script/paste-latex-image.qml
Normal file
15
example-script/paste-latex-image.qml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import QtQml 2.0
|
||||
|
||||
/**
|
||||
* This script is just an example of how to use scripts
|
||||
* Visit http://docs.qownnotes.org/ for more information about scripting
|
||||
*/
|
||||
QtObject {
|
||||
/**
|
||||
* Just show some log entries when the script is initialized
|
||||
*/
|
||||
function init() {
|
||||
script.log("This is just an example script.");
|
||||
script.log("Visit http://docs.qownnotes.org/ for more information about scripting.");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue