void ControlPanel::setStatus(int id, int boxId)
{
if(boxId == 1){
switch(id){
case 1:
this->lblStatus1->setStyleSheet("background-color: rgb(181, 217, 164);");
this->lblStatus1->setText("1");
break;
case 2:
this->lblStatus1->setStyleSheet("background-color: rgb(121, 185, 92);");
this->lblStatus1->setText("2");
break;
case 3:
this->lblStatus1->setStyleSheet("background-color: rgb(244, 209, 81);");
this->lblStatus1->setText("3");
break;
case 4:
this->lblStatus1->setStyleSheet("background-color: rgb(239, 174, 77);");
this->lblStatus1->setText("4");
break;
case 5:
this->lblStatus1->setStyleSheet("background-color: rgb(239, 174, 77);");
this->lblStatus1->setText("4");
break;
}
}
}
void ControlPanel::setStatus(int id, int boxId)
{
if(boxId == 1){
switch(id){
case 1:
this->lblStatus1->setStyleSheet("background-color: rgb(181, 217, 164);");
this->lblStatus1->setText("1");
break;
case 2:
this->lblStatus1->setStyleSheet("background-color: rgb(121, 185, 92);");
this->lblStatus1->setText("2");
break;
case 3:
this->lblStatus1->setStyleSheet("background-color: rgb(244, 209, 81);");
this->lblStatus1->setText("3");
break;
case 4:
this->lblStatus1->setStyleSheet("background-color: rgb(239, 174, 77);");
this->lblStatus1->setText("4");
break;
case 5:
this->lblStatus1->setStyleSheet("background-color: rgb(239, 174, 77);");
this->lblStatus1->setText("4");
break;
}
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks