mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Убрал кнопки Справка из диалогов ГУИ
This commit is contained in:
@@ -492,6 +492,7 @@ bool EditorTrainees::verifyTrainee(Trainee trainee)
|
||||
bool EditorTrainees::editGroup(Group group, Group *group_edit)
|
||||
{
|
||||
DialogEditGroup dlg(this);
|
||||
dlg.setWindowFlags(dlg.windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
|
||||
dlg.setGroup(group);
|
||||
|
||||
@@ -522,6 +523,7 @@ bool EditorTrainees::editGroup(Group group, Group *group_edit)
|
||||
bool EditorTrainees::editTrainee(Trainee trainee, Trainee *trainee_edit)
|
||||
{
|
||||
DialogEditTrainee dlg(this);
|
||||
dlg.setWindowFlags(dlg.windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
|
||||
dlg.setTrainee(trainee);
|
||||
|
||||
|
||||
@@ -18,21 +18,21 @@ void TraineesView::resizeEvent(QResizeEvent *event)
|
||||
treeWidget->setColumnWidth(ColumnsTreeTrainees::clmn_Class, 100);
|
||||
treeWidget->setColumnWidth(ColumnsTreeTrainees::clmn_Computer, 100);
|
||||
treeWidget->setColumnWidth(ColumnsTreeTrainees::clmn_IP_address, 130);
|
||||
treeWidget->setColumnWidth(ColumnsTreeTrainees::clmn_Archived, 80);
|
||||
treeWidget->setColumnWidth(ColumnsTreeTrainees::clmn_Logged, 100);
|
||||
treeWidget->setColumnWidth(ColumnsTreeTrainees::clmn_Archived, 100);
|
||||
treeWidget->setColumnWidth(ColumnsTreeTrainees::clmn_Logged, 120);
|
||||
|
||||
int widthTrainee;
|
||||
|
||||
if(typeView == TypeView::onlyView)
|
||||
{//onlyView
|
||||
widthTrainee = width - (230 + 10);
|
||||
widthTrainee = width - (270 + 10);
|
||||
}
|
||||
else
|
||||
{//control
|
||||
if(adminMode)
|
||||
widthTrainee = width - (760 + 10);
|
||||
widthTrainee = width - (800 + 10);
|
||||
else
|
||||
widthTrainee = width - (630 + 10);
|
||||
widthTrainee = width - (670 + 10);
|
||||
}
|
||||
if(widthTrainee < 250)
|
||||
widthTrainee = 250;
|
||||
|
||||
@@ -79,6 +79,7 @@ void ViewerTrainees::on_btnEditorTrainees_clicked()
|
||||
layout->addWidget(&editorTraineesGroups);
|
||||
dialog->setWindowTitle(tr("Editor of trainees"));
|
||||
dialog->setMinimumSize(1600, 800);
|
||||
dialog->setWindowFlags(dialog->windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
dialog->exec();
|
||||
|
||||
loadTraineesFromDB();
|
||||
|
||||
Reference in New Issue
Block a user