mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
35 lines
718 B
C++
35 lines
718 B
C++
#include <QHBoxLayout>
|
|
#include <QMessageBox>
|
|
|
|
#include "mainwindow.h"
|
|
#include "./ui_mainwindow.h"
|
|
|
|
|
|
MainWindow::MainWindow(QWidget *parent)
|
|
: QMainWindow(parent)
|
|
, ui(new Ui::MainWindow)
|
|
{
|
|
ui->setupUi(this);
|
|
|
|
m_instructorsAndTraineesWidget = new InstructorsAndTraineesWidget(this);
|
|
|
|
if(! m_instructorsAndTraineesWidget->authorizationIsCompleted())
|
|
{
|
|
delete m_instructorsAndTraineesWidget;
|
|
delete ui;
|
|
throw(std::exception());
|
|
}
|
|
|
|
ui->horizontalLayout->addWidget(m_instructorsAndTraineesWidget);
|
|
|
|
this->move(0, 0);
|
|
this->showNormal();
|
|
//this->showMaximized();
|
|
}
|
|
|
|
MainWindow::~MainWindow()
|
|
{
|
|
delete m_instructorsAndTraineesWidget;
|
|
delete ui;
|
|
}
|