This commit is contained in:
2025-09-17 22:23:38 +03:00
parent 973ca4a31d
commit 6aab774795
10 changed files with 140 additions and 25 deletions

View File

@@ -29,7 +29,13 @@ void InstructorsView::resizeEvent(QResizeEvent *event)
else
{//control
if(adminMode)
widthInstructor = width - (610 + 10);
{
#ifdef PROJECT_TYPE_DEBUG
widthInstructor = width - (610 + 10);
#else
widthInstructor = width - (560 + 10);
#endif
}
else
widthInstructor = width - (480 + 10);
}
@@ -75,8 +81,12 @@ void InstructorsView::preparationTreeWidget()
archiveVisible = true;
if(adminMode)
{
{
#ifdef PROJECT_TYPE_DEBUG
treeWidget->setColumnHidden(ColumnsTreeInsructors::clmn_ID, false);
#else
treeWidget->setColumnHidden(ColumnsTreeInsructors::clmn_ID, true);
#endif
}
else
{

View File

@@ -64,12 +64,17 @@ void ViewerInstructors::on_btnEditorInstructors_clicked()
connect(connectorToServer, &ConnectorToServer::signal_UpdateDB, editorInstructors, &EditorInstructors::slot_NeedUpdateUI);
editorInstructors->activate();
dlgEditor = new QDialog(this);
dlgEditor = new QDialog(this,
Qt::WindowSystemMenuHint
| Qt::WindowMaximizeButtonHint
| Qt::WindowMinimizeButtonHint
| Qt::WindowCloseButtonHint);
QHBoxLayout *layout = new QHBoxLayout(dlgEditor);
layout->addWidget(editorInstructors);
dlgEditor->setWindowTitle(tr("Editor of instructors"));
dlgEditor->setMinimumSize(1400, 700);
dlgEditor->setWindowFlags(dlgEditor->windowFlags() & ~Qt::WindowContextHelpButtonHint);
dlgEditor->setWindowState(Qt::WindowMaximized);
dlgEditor->setModal(true);
dlgEditor->exec();
delete dlgEditor;