mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
34 lines
1.1 KiB
C++
34 lines
1.1 KiB
C++
#include <QHBoxLayout>
|
|
#include "dialogredactortrainees.h"
|
|
|
|
DialogRedactorTrainees::DialogRedactorTrainees(ConnectorToServer* connectorToServer,
|
|
bool adminMode, QWidget *parent) :
|
|
QDialog(parent,
|
|
Qt::WindowSystemMenuHint
|
|
| Qt::WindowMaximizeButtonHint
|
|
| Qt::WindowMinimizeButtonHint
|
|
| Qt::WindowCloseButtonHint),
|
|
editorTraineesGroups(nullptr)
|
|
{
|
|
editorTraineesGroups = new EditorTrainees(connectorToServer, adminMode, this);
|
|
connect(connectorToServer, &ConnectorToServer::signal_UpdateDB, editorTraineesGroups, &EditorTrainees::slot_NeedUpdateUI);
|
|
editorTraineesGroups->activate();
|
|
|
|
QHBoxLayout *layout = new QHBoxLayout(this);
|
|
layout->addWidget(editorTraineesGroups);
|
|
this->setWindowTitle(tr("Editor of trainees"));
|
|
this->setMinimumSize(1400, 700);
|
|
//this->setWindowState(Qt::WindowMaximized);
|
|
this->setModal(true);
|
|
}
|
|
|
|
DialogRedactorTrainees::~DialogRedactorTrainees()
|
|
{
|
|
delete editorTraineesGroups;
|
|
}
|
|
|
|
void DialogRedactorTrainees::closeEvent(QCloseEvent *event)
|
|
{
|
|
editorTraineesGroups->close();
|
|
}
|