mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
waitAnimationWidget при ожидании подтв-я блок-ки
This commit is contained in:
@@ -13,6 +13,7 @@ DialogSettings::DialogSettings(ConnectorToServer* connectorToServer, bool instru
|
||||
settings(nullptr),
|
||||
connectorToServer(nullptr),
|
||||
dlgVersionControl(nullptr),
|
||||
waitAnimationWidget(nullptr),
|
||||
flSettingsServerChanged(false),
|
||||
flTryVersionControl(false)
|
||||
{
|
||||
@@ -72,6 +73,11 @@ DialogSettings::DialogSettings(ConnectorToServer* connectorToServer, bool instru
|
||||
flSettingsServerChanged = false;
|
||||
|
||||
connect(connectorToServer, &ConnectorToServer::sigTryBlockResult, this, &DialogSettings::slot_checkTryBlockResult);
|
||||
|
||||
waitAnimationWidget = new WaitAnimationWidget;
|
||||
QMovie *movie = new QMovie(":/resources/icons/762.gif");
|
||||
waitAnimationWidget->setParent(this);
|
||||
waitAnimationWidget->initialize(movie,this);
|
||||
}
|
||||
|
||||
DialogSettings::~DialogSettings()
|
||||
@@ -218,6 +224,8 @@ void DialogSettings::on_btnSetVersion_clicked()
|
||||
if(connectorToServer)
|
||||
if(connectorToServer->getIsConnected())
|
||||
{
|
||||
waitAnimationWidget->showWithPlay();
|
||||
|
||||
flTryVersionControl = true;
|
||||
|
||||
connectorToServer->sendQueryBlockAuth(true, "VersionControl");
|
||||
@@ -255,6 +263,8 @@ void DialogSettings::on_DialogSettings_accepted()
|
||||
|
||||
void DialogSettings::dialog_VersionControl()
|
||||
{
|
||||
waitAnimationWidget->hideWithStop();
|
||||
|
||||
dlgVersionControl = new DialogVersionControl(connectorToServer, this);
|
||||
dlgVersionControl->initialize(connectorToServer->getLoginName());
|
||||
dlgVersionControl->exec();
|
||||
|
||||
Reference in New Issue
Block a user