diff options
author | Orangerot <purple@orangerot.dev> | 2024-08-15 21:24:28 +0200 |
---|---|---|
committer | Orangerot <purple@orangerot.dev> | 2024-08-15 21:24:28 +0200 |
commit | c09350b7c9adf6327f0a0475c897a71dd23b6cae (patch) | |
tree | aa40a8f5c3aabc28360a0851a5f1220611d888bf /res/gui | |
parent | f17c2a73e17bb0a2309ae2aba76761f480206656 (diff) |
feat(SportModel): request API, parse and display Model
Diffstat (limited to 'res/gui')
-rw-r--r-- | res/gui/EventsPage.qml | 5 |
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 |