roulette-payout/PlayerAreaView.qml

41 lines
786 B
QML
Raw Normal View History

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import roulette
Item {
2024-06-01 14:46:10 +01:00
Text {
id: croupier
text: "Croupier"
}
ColumnLayout {
2024-06-01 14:46:10 +01:00
anchors {
top: croupier.bottom
topMargin: 20
}
2024-06-01 14:46:10 +01:00
spacing: 60
Repeater {
model: 7
Item {
Text {
id: label
text: "Player " + (index + 1)
}
TextField {
anchors.top: label.bottom
anchors.topMargin: 6
onTextEdited: PlayerAreaModel.setPlayerName(text, index)
onActiveFocusChanged: PlayerAreaModel.setFocusedPlayer(index)
}
}
}
}
}