mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-18 16:32:33 +02:00
Add loader to fix inital lag of the first qt https get request. This is a known qt issue...
This commit is contained in:
parent
d5f9c3750d
commit
16a10128f4
@ -9,6 +9,7 @@ Item {
|
|||||||
id: community
|
id: community
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: stomtWrapper
|
id: stomtWrapper
|
||||||
width: 500
|
width: 500
|
||||||
@ -92,8 +93,11 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
interval: 500; running: true; repeat: false
|
interval: 200; running: true; repeat: false
|
||||||
onTriggered:loader_feedback.sourceComponent = component_feedback
|
onTriggered: {
|
||||||
|
feedModel.source = "https://screen-play.app/index.php?option=com_content&view=category&layout=blog&id=10&format=feed&type=rss"
|
||||||
|
loader_feedback.sourceComponent = component_feedback
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -145,7 +149,7 @@ Item {
|
|||||||
|
|
||||||
XmlListModel {
|
XmlListModel {
|
||||||
id: feedModel
|
id: feedModel
|
||||||
source: "http://screen-play.app/index.php?option=com_content&view=category&layout=blog&id=10&format=feed&type=rss"
|
|
||||||
query: "/rss/channel/item"
|
query: "/rss/channel/item"
|
||||||
XmlRole {
|
XmlRole {
|
||||||
name: "title"
|
name: "title"
|
||||||
|
Loading…
Reference in New Issue
Block a user