23 lines
520 B
QML
23 lines
520 B
QML
import QtQuick 2.4
|
|
|
|
|
|
Item {
|
|
Timer{
|
|
id:syncTimer
|
|
repeat: true
|
|
onTriggered: {
|
|
updatenews.setDatabase();
|
|
updatenews.login();
|
|
updatenews.startsync();
|
|
}
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
if (root.globaloptions.hasOwnProperty("syncinterval") && root.globaloptions.syncinterval !=null && root.globaloptions.syncinterval !=0){
|
|
syncTimer.interval=root.globaloptions.syncinterval*60000;
|
|
syncTimer.start()
|
|
}
|
|
}
|
|
}
|
|
|