Изменение статуса для ФИМ. В процессе.

This commit is contained in:
2025-12-18 10:27:10 +03:00
parent 360b740220
commit c8ca0e32ad
9 changed files with 58 additions and 42 deletions

View File

@@ -1,7 +1,7 @@
#include <QHBoxLayout>
#include "dialogchekertask.h"
DialogChekerTask::DialogChekerTask(ConnectorToServer* connectorToServer, QString type, QWidget *parent) :
DialogChekerTask::DialogChekerTask(ConnectorToServer* connectorToServer, CheckerTask::TypeChecker type, QWidget *parent) :
QDialog(parent,
Qt::WindowSystemMenuHint
| Qt::WindowMaximizeButtonHint
@@ -13,17 +13,24 @@ DialogChekerTask::DialogChekerTask(ConnectorToServer* connectorToServer, QString
QHBoxLayout *layout = new QHBoxLayout(this);
layout->addWidget(checkerTask);
this->setWindowTitle(tr("Check Task"));
if(type == "fim")
switch (type)
{
case CheckerTask::TypeChecker::fim_check:
case CheckerTask::TypeChecker::amm_check:
this->setWindowTitle(tr("Check Task"));
this->setMinimumSize(1400, 700);
this->setWindowState(Qt::WindowMaximized);
}
else
{
break;
case CheckerTask::TypeChecker::fim_status:
case CheckerTask::TypeChecker::amm_status:
this->setWindowTitle(tr("Status Task"));
this->setMinimumSize(400, 200);
break;
default:
break;
}
this->setModal(true);
}