Commit 1a501289 authored by Michal Policht's avatar Michal Policht

Add 'Counting Daemon' example.

parent 018c591e
import qbs
import cutehmi
cutehmi.Example {
name: "CountDaemon"
vendor: "CuteHMI"
friendlyName: "Counting Daemon"
description: "Daemon demonstration with counter."
author: "Michal Policht"
copyright: "Michal Policht"
license: "WTFNWPL"
files: [
"Main.qml",
]
Depends { name: "cutehmi_daemon" }
}
//(c)MP: Copyright © 2018, Michal Policht. All rights reserved.
//(c)MP: This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
DO WHAT THE FUCK YOU WANT TO BUT NO FUCKING WARRANTY PUBLIC LICENSE
Version 1, December 2018
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO BUT NO FUCKING WARRANTY PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
1. NO FUCKING WARRANTY!
//(c)MP: Copyright © %YEAR%, Michal Policht. All rights reserved.
//(c)MP: This Source Code Form is subject to the terms of the DO WHAT THE FUCK YOU WANT TO BUT NO FUCKING WARRANTY PUBLIC LICENSE, Version 1.
//(c)MP: DO WHAT THE FUCK YOU WANT TO BUT NO FUCKING WARRANTY PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
//(c)MP: 0. You just DO WHAT THE FUCK YOU WANT TO.
//(c)MP: 1. NO FUCKING WARRANTY!
#(c)MP: Copyright © %YEAR%, Michal Policht. All rights reserved.
#(c)MP: This Source Code Form is subject to the terms of the DO WHAT THE FUCK YOU WANT TO BUT NO FUCKING WARRANTY PUBLIC LICENSE, Version 1.
#(c)MP: DO WHAT THE FUCK YOU WANT TO BUT NO FUCKING WARRANTY PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
#(c)MP: 0. You just DO WHAT THE FUCK YOU WANT TO.
#(c)MP: 1. NO FUCKING WARRANTY
import QtQuick 2.0
QtObject {
property int test: 0
Component.onCompleted: {
console.log("Hello from counting daemon!")
}
property Timer timer: Timer {
interval: 1000
running: true
repeat: true
property int ctr: 0
onTriggered: {
ctr++;
console.log("I can count to", ctr)
if (ctr === 10)
Qt.quit()
}
}
}
......@@ -2,6 +2,7 @@ Project {
minimumQbsVersion: "1.6"
references: [
"SampleProject"
"SampleProject",
"CountDaemon"
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment