Убрал кнопки Справка из диалогов ГУИ

This commit is contained in:
2025-09-15 11:54:51 +03:00
parent 908430fd24
commit 762437a908
10 changed files with 27 additions and 15 deletions

View File

@@ -311,6 +311,7 @@ bool EditorInstructors::verifyInstructor(Instructor instructor)
bool EditorInstructors::editInstructor(Instructor instructor, Instructor* instructor_edit)
{
DialogEditInstructor dlg(this);
dlg.setWindowFlags(dlg.windowFlags() & ~Qt::WindowContextHelpButtonHint);
dlg.setInstructor(instructor);

View File

@@ -16,22 +16,22 @@ void InstructorsView::resizeEvent(QResizeEvent *event)
treeWidget->setColumnWidth(ColumnsTreeInsructors::clmn_ID, 50);
treeWidget->setColumnWidth(ColumnsTreeInsructors::clmn_Login, 100);
treeWidget->setColumnWidth(ColumnsTreeInsructors::clmn_Password, 100);
treeWidget->setColumnWidth(ColumnsTreeInsructors::clmn_Administrator, 120);
treeWidget->setColumnWidth(ColumnsTreeInsructors::clmn_Archived, 80);
treeWidget->setColumnWidth(ColumnsTreeInsructors::clmn_Logged, 100);
treeWidget->setColumnWidth(ColumnsTreeInsructors::clmn_Administrator, 140);
treeWidget->setColumnWidth(ColumnsTreeInsructors::clmn_Archived, 100);
treeWidget->setColumnWidth(ColumnsTreeInsructors::clmn_Logged, 120);
int widthInstructor;
if(typeView == TypeView::onlyView)
{//onlyView
widthInstructor = width - (230 + 10);
widthInstructor = width - (290 + 10);
}
else
{//control
if(adminMode)
widthInstructor = width - (550 + 10);
widthInstructor = width - (610 + 10);
else
widthInstructor = width - (420 + 10);
widthInstructor = width - (480 + 10);
}
if(widthInstructor < 250)
widthInstructor = 250;

View File

@@ -63,7 +63,7 @@ void ViewerInstructors::on_btnEditorInstructors_clicked()
layout->addWidget(&editorInstructors);
dialog->setWindowTitle(tr("Editor of instructors"));
dialog->setMinimumSize(1600, 800);
dialog->setStyleSheet(this->styleSheet());
dialog->setWindowFlags(dialog->windowFlags() & ~Qt::WindowContextHelpButtonHint);
dialog->exec();
loadInstructorsFromDB();