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:
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user