Files
RRJServer/testDB/testDBpgSQL/mainwindow.cpp
2024-11-02 13:43:57 +03:00

34 lines
715 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->authorizationCompleted())
{
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;
}