Lazy loading for the tweets

This commit is contained in:
Ilya Kitaev
2016-06-21 11:58:06 +03:00
parent 417c9bf609
commit 88d9be953b
4 changed files with 47 additions and 28 deletions

View File

@@ -36,6 +36,11 @@ Rectangle {
width: 330
color: "#FFFFFF"
function updateTweets() {
tabView.twitter.item.updateTweets()
}
TabView {
id: tabView
anchors.left: parent.left
@@ -45,12 +50,18 @@ Rectangle {
anchors.leftMargin: 14
anchors.rightMargin: 14
anchors.topMargin: 40
property alias twitter: twitter
Tab { title: qsTr("Twitter"); source: "tabs/Twitter.qml" }
Tab { id: twitter; title: qsTr("Twitter"); source: "tabs/Twitter.qml" }
Tab { title: "News" }
Tab { title: "Help" }
Tab { title: "About" }
style: TabViewStyle {
frameOverlap: 0
tabOverlap: 0