Рефакт

This commit is contained in:
2025-09-19 10:42:51 +03:00
parent 4eabd95506
commit d93e5e49c9
5 changed files with 23 additions and 16 deletions

View File

@@ -25,20 +25,20 @@ void TraineesView::resizeEvent(QResizeEvent *event)
if(typeView == TypeView::onlyView)
{//onlyView
widthTrainee = width - (220 + 10);
widthTrainee = width - (220 + 10 + 20);
}
else
{//control
if(adminMode)
{
#ifdef PROJECT_TYPE_DEBUG
widthTrainee = width - (470 + 10);
widthTrainee = width - (470 + 10 + 20);
#else
widthTrainee = width - (420 + 10);
widthTrainee = width - (420 + 10 + 20);
#endif
}
else
widthTrainee = width - (440 + 10);
widthTrainee = width - (440 + 10 + 20);
}
if(widthTrainee < 250)
widthTrainee = 250;