summaryrefslogtreecommitdiff
path: root/res/gui/EventsPage.qml
diff options
context:
space:
mode:
authorOrangerot <purple@orangerot.dev>2024-08-16 07:06:05 +0200
committerOrangerot <purple@orangerot.dev>2024-08-16 07:06:05 +0200
commiteb61690873e234ea28a3f437fb7211c773a449fe (patch)
treed687ed8ec12de3cef8a24e0c54d30f70d2dc5e82 /res/gui/EventsPage.qml
parentc09350b7c9adf6327f0a0475c897a71dd23b6cae (diff)
feat(EventInfo): display EventInfo with List of Competitors
Diffstat (limited to 'res/gui/EventsPage.qml')
-rw-r--r--res/gui/EventsPage.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/res/gui/EventsPage.qml b/res/gui/EventsPage.qml
index 5e4adf3..129d742 100644
--- a/res/gui/EventsPage.qml
+++ b/res/gui/EventsPage.qml
@@ -21,12 +21,13 @@ Page {
spacing: 20
model: sports
delegate: ItemDelegate {
- required property string sportName
- text: sportName
+ required property string eventName
+ required property list<string> competitors
+ text: eventName
width: listView.width - listView.leftMargin - listView.rightMargin
height: avatar.implicitHeight + 32
leftPadding: avatar.implicitWidth + 32
- onClicked: root.StackView.view.push("EventInfoPage.qml", { event_id: 1 })
+ onClicked: root.StackView.view.push("EventInfoPage.qml", { eventName, competitors })
Image {
id: avatar