mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
ref: link argument
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <QFontDatabase>
|
||||
#include <QMessageBox>
|
||||
#include <QMovie>
|
||||
#include <QMutexLocker>
|
||||
#include <QPaintEvent>
|
||||
#include <QPainter>
|
||||
#include <QTimer>
|
||||
@@ -25,10 +26,11 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
void MainWindow::createObjects()
|
||||
{
|
||||
qRegisterMetaType<PacketType>("PacketType");
|
||||
|
||||
|
||||
updateWidget = new UpdateNotifyWidget;
|
||||
|
||||
QMutex *mutex = new QMutex;
|
||||
QMutexLocker locker(mutex);
|
||||
|
||||
updateWidget->setParent(this);
|
||||
commonButtonGroupWidget = new CommonButtonGroupWidget;
|
||||
instructorButtonGroup = new InstructorButtonGroupWidget;
|
||||
@@ -83,7 +85,7 @@ void MainWindow::createObjects()
|
||||
timer = new QTimer;
|
||||
}
|
||||
|
||||
void MainWindow::paintEvent(QPaintEvent* event) {
|
||||
void MainWindow::paintEvent(QPaintEvent*) {
|
||||
QPainter painter(this);
|
||||
painter.setRenderHint(QPainter::Antialiasing);
|
||||
|
||||
@@ -114,7 +116,7 @@ void MainWindow::initialize()
|
||||
dataParser->initialize(postProcessorSystem);
|
||||
recognizeSystem->initialize(dataParser, versionContainer, postProcessorSystem);
|
||||
resourceManager->painting();
|
||||
commonButtonGroupWidget->initialize(externalExecuter,sendSystem,client);
|
||||
commonButtonGroupWidget->initialize(externalExecuter,sendSystem);
|
||||
commonButtonGroupWidget->show();
|
||||
ui->LanguageWidget->hide();
|
||||
|
||||
@@ -122,7 +124,7 @@ void MainWindow::initialize()
|
||||
|
||||
setInlineDebug(tr("Инициализация..."));
|
||||
emit sigCalculateHash();
|
||||
emit sigInitializeClient(recognizeSystem,externalExecuter,sendSystem);
|
||||
emit sigInitializeClient(recognizeSystem,sendSystem);
|
||||
|
||||
screenChecker->check();
|
||||
|
||||
@@ -135,8 +137,6 @@ void MainWindow::initialize()
|
||||
ui->versionLayoutWidget->hide();
|
||||
}
|
||||
|
||||
|
||||
|
||||
void MainWindow::bindConnection()
|
||||
{
|
||||
connect(timer,&QTimer::timeout,this,&MainWindow::slotDisableNotify);
|
||||
@@ -555,6 +555,8 @@ void MainWindow::on_exitButton_clicked()
|
||||
client->disconnect();
|
||||
|
||||
workerThread->quit();
|
||||
workerThread->wait();
|
||||
|
||||
delete workerThread;
|
||||
delete ui;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user