mirror of
https://github.com/modelec/ihm.git
synced 2026-01-18 16:47:32 +01:00
Clear checkboxes when spawn point choosed
This commit is contained in:
@@ -149,6 +149,7 @@ protected slots:
|
||||
|
||||
void onSpawnPointChoose(int nb)
|
||||
{
|
||||
this->preparationMatch->clearCheckboxes();
|
||||
this->setWidgetNb(3);
|
||||
}
|
||||
|
||||
|
||||
@@ -105,6 +105,15 @@ public:
|
||||
this->lidar->TCPMessage(message);
|
||||
}
|
||||
|
||||
void clearCheckboxes()
|
||||
{
|
||||
this->ledVerte->setChecked(false);
|
||||
this->arduino->setChecked(false);
|
||||
this->aruco->setChecked(false);
|
||||
this->lidarPing->setChecked(false);
|
||||
this->tirette->setChecked(false);
|
||||
}
|
||||
|
||||
signals:
|
||||
void startGame();
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ public:
|
||||
});
|
||||
|
||||
this->disarme = new QPushButton("Disarme", this);
|
||||
this->disarme->setStyleSheet("background-color: #5FC8E6; border-radius: 20px; height: 66px; width: 378px; color: black; font-size: 33px;");
|
||||
this->disarme->setStyleSheet("background-color: #ED4747; border-radius: 20px; height: 66px; width: 378px; color: black; font-size: 33px;");
|
||||
this->disarme->setBaseSize(378, 66);
|
||||
this->mainLayout->addWidget(this->disarme);
|
||||
connect(this->disarme, &QPushButton::pressed, this, &WaintingForTirette::disarmePressed);
|
||||
|
||||
Reference in New Issue
Block a user