notifyController убрал

This commit is contained in:
2025-11-30 19:28:08 +03:00
parent fb493aca9f
commit d129fbded0
20 changed files with 82 additions and 206 deletions

View File

@@ -57,6 +57,7 @@ void DialogVersionControl::initialize(QString authorName)
connect(connectorToServer, &ConnectorToServer::signal_AnimationActivated, this, &DialogVersionControl::slot_activateLoadAnimation);
connect(connectorToServer, &ConnectorToServer::signal_showServerList, this, &DialogVersionControl::slot_showServerList);
connect(connectorToServer, &ConnectorToServer::signal_NotifyVersionControl, this, &DialogVersionControl::slot_NotifyVersionControl);
connect(this, &DialogVersionControl::sigSendSwitchVersion, connectorToServer, &ConnectorToServer::slot_SendSwitchVersion);
connect(this, &DialogVersionControl::sigSendCopyVersion, connectorToServer, &ConnectorToServer::slot_SendCopyVersion);
@@ -114,7 +115,7 @@ void DialogVersionControl::sendCopyEmit(QString newName)
if (selectedVersion == nullptr)
{
QString text = tr("Version not selected");
SpecMsgBox(this, SpecMsgBox::TypeSpecMsgBox::warningClose, text).exec();
SpecMsgBox::WarningClose(this, text);
return;
}
@@ -127,7 +128,7 @@ void DialogVersionControl::on_createDuplicateButton_clicked()
if (selectedVersion == nullptr)
{
QString text = tr("Version not selected");
SpecMsgBox(this, SpecMsgBox::TypeSpecMsgBox::warningClose, text).exec();
SpecMsgBox::WarningClose(this, text);
return;
}
@@ -160,7 +161,7 @@ void DialogVersionControl::on_deleteVersionButton_clicked()
if (selectedVersion == nullptr)
{
QString text = tr("Version not selected");
SpecMsgBox(this, SpecMsgBox::TypeSpecMsgBox::warningClose, text).exec();
SpecMsgBox::WarningClose(this, text);
return;
}
@@ -172,7 +173,7 @@ void DialogVersionControl::on_switchServerVersionButton_clicked()
if (selectedVersion == nullptr)
{
QString text = tr("Version not selected");
SpecMsgBox(this, SpecMsgBox::TypeSpecMsgBox::warningClose, text).exec();
SpecMsgBox::WarningClose(this, text);
return;
}
@@ -209,6 +210,11 @@ void DialogVersionControl::slot_SetVersion(StreamingVersionData *serverVersion)
flGetVersion = true;
}
void DialogVersionControl::slot_NotifyVersionControl(QString text)
{
SpecMsgBox::WarningClose(this, text);
}
void DialogVersionControl::resizeEvent(QResizeEvent *event)
{
QSize size = event->size();

View File

@@ -39,6 +39,7 @@ private slots:
void slot_activateLoadAnimation(bool flag);
void slot_showServerList(QList<StreamingVersionData*> *serverList);
void slot_SetVersion(StreamingVersionData* serverVersion);
void slot_NotifyVersionControl(QString text);
signals:
void sigSendDeleteVersion(StreamingVersionData *streaming);