TaskWarrior.qml: Adds proper implementation

This commit is contained in:
Oscar Andreasson 2015-11-29 15:33:05 +01:00
parent 5b041df310
commit 98ad24d447

View file

@ -1,6 +1,6 @@
import QtQuick 2.2
//import net.frozentux.qmlcomponents 1.0
import net.frozentux.qmlcomponents 1.0
Rectangle {
id: root
@ -10,7 +10,23 @@ Rectangle {
JSONListModel {
id: jsonModel
source: "jsondata.txt"
source: fileName
}
TaskWarrior {
id: taskwarrior
jsonFile: fileName
}
Timer {
repeat: true
interval: 5*60*1000
running: true
triggeredOnStart: true
onTriggered: {
taskwarrior.sync()
}
}