mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
bugFixing 2
This commit is contained in:
@@ -117,7 +117,7 @@ void EditorTrainees::on_btnDeleteGroup_clicked()
|
||||
}
|
||||
else
|
||||
{//Пустая группа
|
||||
if(SpecialMessageBox(this, SpecialMessageBox::TypeSpecMsgBox::warning, tr("The deletion will be irrevocable.\nDelete it anyway?")).exec() == QDialog::Accepted)
|
||||
if(SpecialMessageBox(this, SpecialMessageBox::TypeSpecMsgBox::warningYesNo, tr("The deletion will be irrevocable.\nDelete it anyway?")).exec() == QDialog::Accepted)
|
||||
{
|
||||
waitAnimationWidget->showWithPlay();
|
||||
connectorToServer->sendQueryToDB(TypeQueryToDB::TYPE_QUERY_DEL_GROUP, id_group);
|
||||
@@ -221,7 +221,7 @@ void EditorTrainees::on_btnDeleteTrainee_clicked()
|
||||
return;
|
||||
}
|
||||
|
||||
if(SpecialMessageBox(this, SpecialMessageBox::TypeSpecMsgBox::warning, tr("The deletion will be irrevocable.\nDelete it anyway?")).exec() == QDialog::Accepted)
|
||||
if(SpecialMessageBox(this, SpecialMessageBox::TypeSpecMsgBox::warningYesNo, tr("The deletion will be irrevocable.\nDelete it anyway?")).exec() == QDialog::Accepted)
|
||||
{
|
||||
waitAnimationWidget->showWithPlay();
|
||||
connectorToServer->sendQueryToDB(TypeQueryToDB::TYPE_QUERY_DEL_TRAINEE, id_trainee);
|
||||
|
||||
@@ -25,14 +25,14 @@ void TraineesView::resizeEvent(QResizeEvent *event)
|
||||
|
||||
if(typeView == TypeView::onlyView)
|
||||
{//onlyView
|
||||
widthTrainee = width - (270 + 10);
|
||||
widthTrainee = width - (220 + 10);
|
||||
}
|
||||
else
|
||||
{//control
|
||||
if(adminMode)
|
||||
widthTrainee = width - (450 + 10);
|
||||
widthTrainee = width - (470 + 10);
|
||||
else
|
||||
widthTrainee = width - (320 + 10);
|
||||
widthTrainee = width - (340 + 10);
|
||||
}
|
||||
if(widthTrainee < 250)
|
||||
widthTrainee = 250;
|
||||
|
||||
Reference in New Issue
Block a user