roulette-payout/Results.qml
greek 256d3740f9 Forgot to stage Results.qml file.
Also added thousands separators to numebrs where appropriate.
2024-06-08 12:27:23 +01:00

39 lines
777 B
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import roulette
GridLayout {
rowSpacing: 20
columnSpacing: 50
flow: GridLayout.TopToBottom
rows: 3
anchors {
/* These random IDs com from Results' parent*/
left: payoutButton.right
leftMargin: 30
top: roulette.bottom
topMargin: 20
}
Repeater {
model: 7
Text {
text: ""
Connections {
target: PlayerAreaModel
function onResults(name, n, payout) {
if (index + 1 == n && name != "") {
text = name + ": " + payout.toLocaleString(Qt.locale(), 'f', 0) + "g"
}
}
}
}
}
}