summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorOrangerot <purple@orangerot.dev>2024-08-15 21:24:28 +0200
committerOrangerot <purple@orangerot.dev>2024-08-15 21:24:28 +0200
commitc09350b7c9adf6327f0a0475c897a71dd23b6cae (patch)
treeaa40a8f5c3aabc28360a0851a5f1220611d888bf /res
parentf17c2a73e17bb0a2309ae2aba76761f480206656 (diff)
feat(SportModel): request API, parse and display Model
Diffstat (limited to 'res')
-rw-r--r--res/gui/EventsPage.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/res/gui/EventsPage.qml b/res/gui/EventsPage.qml
index 772418e..5e4adf3 100644
--- a/res/gui/EventsPage.qml
+++ b/res/gui/EventsPage.qml
@@ -19,9 +19,10 @@ Page {
bottomMargin: 48
rightMargin: 48
spacing: 20
- model: ["Albert Einstein", "Ernest Hemingway", "Hans Gude"]
+ model: sports
delegate: ItemDelegate {
- text: modelData
+ required property string sportName
+ text: sportName
width: listView.width - listView.leftMargin - listView.rightMargin
height: avatar.implicitHeight + 32
leftPadding: avatar.implicitWidth + 32