Clear checkboxes when spawn point choosed

This commit is contained in:
2024-03-28 19:38:59 +01:00
parent 7d196f9522
commit b23a74442d
3 changed files with 11 additions and 1 deletions

View File

@@ -149,6 +149,7 @@ protected slots:
void onSpawnPointChoose(int nb)
{
this->preparationMatch->clearCheckboxes();
this->setWidgetNb(3);
}

View File

@@ -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();

View File

@@ -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);