import QtQuick 2.0 import QtQuick.LocalStorage 2.0 import QtQuick.Window 2.0 import QtQuick.Dialogs 1.2 import QtQuick.Controls 1.2 import QtQuick.Controls.Styles 1.4 import QtQml.Models 2.1 import "qrc:/js/news.js" as Newsjs import "qrc:/js/service.js" as Service import "qrc:/js/layout.js" as Layoutjs import "qrc:/js/helper.js" as Helperjs import "qrc:/qml" TabView{ id:root tabPosition: Qt.BottomEdge width: 400//Screen.desktopAvailableWidth height: 400// Screen.desktopAvailableHeight property var db: ["Photos", "1.0", "Stores Friendica data", 100000000] property var login: Service.readActiveConfig(db) property var contactlist: [] property real mm: Screen.pixelDensity signal messageSignal(var friend) signal fotoSignal(var friend) signal directmessageSignal(var friend) signal newsSignal(var news) signal friendsSignal(var username) currentIndex: (login=="")? 3:0 property var news:[] property var newContacts:[] property int currentContact: 0 property string contactLoadType: "" onLoginChanged:{Newsjs.newsfromdb( db,login.username, function(dbnews){ newsSignal(dbnews) })} onNewContactsChanged:{if(newContacts.length>0){// download first contact image and update db // print("newcontact"+JSON.stringify(newContacts)); updateContactInDB(login,db,newContacts[currentContact].isFriend,newContacts[currentContact])} } onCurrentContactChanged:{// download next contact image after photoplaceholder is finished saving and update db //print("Current contact"+JSON.stringify(newContacts[currentContact])); if(currentContact