diff options
author | Orangerot <purple@orangerot.dev> | 2024-08-16 07:06:05 +0200 |
---|---|---|
committer | Orangerot <purple@orangerot.dev> | 2024-08-16 07:06:05 +0200 |
commit | eb61690873e234ea28a3f437fb7211c773a449fe (patch) | |
tree | d687ed8ec12de3cef8a24e0c54d30f70d2dc5e82 /res/gui/EventInfoPage.qml | |
parent | c09350b7c9adf6327f0a0475c897a71dd23b6cae (diff) |
feat(EventInfo): display EventInfo with List of Competitors
Diffstat (limited to 'res/gui/EventInfoPage.qml')
-rw-r--r-- | res/gui/EventInfoPage.qml | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/res/gui/EventInfoPage.qml b/res/gui/EventInfoPage.qml index 956507e..d04716b 100644 --- a/res/gui/EventInfoPage.qml +++ b/res/gui/EventInfoPage.qml @@ -4,7 +4,8 @@ import QtQuick.Controls Page { id: root - property string event_id + property string eventName + property list<string> competitors header: ToolBar { ToolButton { @@ -18,7 +19,29 @@ Page { id: pageTitle font.pixelSize: 20 anchors.centerIn: parent - text: qsTr("Event Info") + text: eventName + } + } + + ListView { + id: listView + anchors.fill: parent + topMargin: 48 + leftMargin: 48 + bottomMargin: 48 + rightMargin: 48 + spacing: 20 + model: competitors + delegate: ItemDelegate { + text: modelData + width: listView.width - listView.leftMargin - listView.rightMargin + height: avatar.implicitHeight + 32 + leftPadding: avatar.implicitWidth + 32 + + Image { + id: avatar + // source: "images/" + modelData.replace(" ", "_") + ".png" + } } } |