From c09350b7c9adf6327f0a0475c897a71dd23b6cae Mon Sep 17 00:00:00 2001 From: Orangerot Date: Thu, 15 Aug 2024 21:24:28 +0200 Subject: feat(SportModel): request API, parse and display Model --- res/gui/EventsPage.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'res/gui') 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 -- cgit v1.2.3