Payout button stub.

This commit is contained in:
greek 2024-06-07 18:03:22 +01:00
parent 91ea5543a2
commit f72c5b781f
3 changed files with 36 additions and 1 deletions

View file

@ -76,7 +76,12 @@ void PlayerAreaModel::removeBet(BetType b, int n)
}
}
void PlayerAreaModel::cancelBet(BetType b, int n) {
void PlayerAreaModel::cancelBet(BetType b, int n)
{
emit betCanceled(b, n);
}
void PlayerAreaModel::payout()
{
printf("payout\n");
}

View file

@ -49,6 +49,7 @@ public slots:
void removeBet(BetType b, int n);
QString getPlayerName(int n);
void cancelBet(BetType b, int n);
void payout();
private:

View file

@ -32,5 +32,34 @@ Window {
right: parent.right
}
}
Button {
text: "Payout"
font.pointSize: 15
highlighted: false
onClicked: PlayerAreaModel.payout()
anchors {
left: roulette.left
bottom: parent.bottom
bottomMargin: 20
}
background: Rectangle {
implicitWidth: 150
implicitHeight: 60
opacity: {
if (parent.pressed) {
1
} else if (parent.hovered) {
0.2
} else {
0.3
}
}
color: "#CCCCCC"
border.width: 0
}
}
}
}