2024-05-31 12:10:00 +01:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
|
|
|
import roulette
|
|
|
|
|
|
|
|
Item {
|
2024-06-01 14:46:10 +01:00
|
|
|
Text {
|
|
|
|
id: croupier
|
|
|
|
text: "Croupier"
|
|
|
|
}
|
|
|
|
|
2024-05-31 12:10:00 +01:00
|
|
|
ColumnLayout {
|
2024-06-01 14:46:10 +01:00
|
|
|
anchors {
|
|
|
|
top: croupier.bottom
|
|
|
|
topMargin: 20
|
2024-05-31 12:10:00 +01:00
|
|
|
}
|
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)
|
|
|
|
}
|
|
|
|
}
|
2024-05-31 12:10:00 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|