TaskWarrior.qml: Adds proper implementation
This commit is contained in:
parent
5b041df310
commit
98ad24d447
1 changed files with 18 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue