summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorSteru <jerrydream111@gmail.com>2024-08-16 22:19:42 +0200
committerSteru <jerrydream111@gmail.com>2024-08-16 22:19:42 +0200
commit100e73ec28dbc1f307c540cbd4b5a04dfe5922f8 (patch)
tree20ec2b68ae44f7e0e0cec62b605696301898072e /res
parentb0063e96410ff0c407e2daead4cf53252568b542 (diff)
Compacted competitors into one object, deleted API class (now in sportmodel).
Diffstat (limited to 'res')
-rw-r--r--res/gui/EventInfoPage.qml6
-rw-r--r--res/gui/EventsPage.qml2
2 files changed, 4 insertions, 4 deletions
diff --git a/res/gui/EventInfoPage.qml b/res/gui/EventInfoPage.qml
index d04716b..6c46a7f 100644
--- a/res/gui/EventInfoPage.qml
+++ b/res/gui/EventInfoPage.qml
@@ -5,7 +5,7 @@ import QtQuick.Controls
Page {
id: root
property string eventName
- property list<string> competitors
+ property list<QtObject> competitors
header: ToolBar {
ToolButton {
@@ -31,9 +31,9 @@ Page {
bottomMargin: 48
rightMargin: 48
spacing: 20
- model: competitors
+ model: eventName
delegate: ItemDelegate {
- text: modelData
+ text: "sadly not working..."
width: listView.width - listView.leftMargin - listView.rightMargin
height: avatar.implicitHeight + 32
leftPadding: avatar.implicitWidth + 32
diff --git a/res/gui/EventsPage.qml b/res/gui/EventsPage.qml
index ad36d15..92cb343 100644
--- a/res/gui/EventsPage.qml
+++ b/res/gui/EventsPage.qml
@@ -265,7 +265,7 @@ Page {
model: sports
delegate: ItemDelegate {
required property string eventName
- required property list<string> competitors
+ property list<QtObject> competitors
text: eventName
width: listView.width - listView.leftMargin - listView.rightMargin
height: avatar.height