diff --git a/InstructorsAndTrainees/instructorsandtraineeswidget.cpp b/InstructorsAndTrainees/instructorsandtraineeswidget.cpp index ec8ec36..ecd32f6 100644 --- a/InstructorsAndTrainees/instructorsandtraineeswidget.cpp +++ b/InstructorsAndTrainees/instructorsandtraineeswidget.cpp @@ -55,7 +55,8 @@ InstructorsAndTraineesWidget::InstructorsAndTraineesWidget(QWidget *parent) : connect(connectorToServer, &ConnectorToServer::sigDeLoginResult, this, &InstructorsAndTraineesWidget::slot_checkDeLoginResult); connect(connectorToServer, &ConnectorToServer::sigServerBlocked, this, &InstructorsAndTraineesWidget::slot_ServerBlocked); connect(connectorToServer, &ConnectorToServer::sigErrorAuth, this, &InstructorsAndTraineesWidget::slot_ErrorAuth); - connect(connectorToServer,&ConnectorToServer::signal_AnswerDocsChanged,this, &InstructorsAndTraineesWidget::slot_AnswerDocsChanged); + connect(connectorToServer, &ConnectorToServer::signal_SetVersion, this, &InstructorsAndTraineesWidget::slot_SetVersion); + connect(connectorToServer, &ConnectorToServer::signal_AnswerDocsChanged,this, &InstructorsAndTraineesWidget::slot_AnswerDocsChanged); messangerController = new MessangerController(connectorToServer, this); @@ -320,6 +321,12 @@ void InstructorsAndTraineesWidget::slot_ErrorAuth(QString error) } } +void InstructorsAndTraineesWidget::slot_SetVersion(StreamingVersionData *serverVersion) +{ + QString viewName = serverVersion->getViewName(); + ui->lblVersionText->setText(viewName); +} + void InstructorsAndTraineesWidget::slot_ConnectedToServer(bool state) { if(state) diff --git a/InstructorsAndTrainees/instructorsandtraineeswidget.h b/InstructorsAndTrainees/instructorsandtraineeswidget.h index 2cd5624..747ffd6 100644 --- a/InstructorsAndTrainees/instructorsandtraineeswidget.h +++ b/InstructorsAndTrainees/instructorsandtraineeswidget.h @@ -55,6 +55,7 @@ public Q_SLOTS: void slot_ServerBlocked(); void slot_ErrorAuth(QString error); + void slot_SetVersion(StreamingVersionData* serverVersion); //Слот обработки результата подключения к серверу void slot_ConnectedToServer(bool state); diff --git a/InstructorsAndTrainees/instructorsandtraineeswidget.ui b/InstructorsAndTrainees/instructorsandtraineeswidget.ui index 60c6bbf..f6b7147 100644 --- a/InstructorsAndTrainees/instructorsandtraineeswidget.ui +++ b/InstructorsAndTrainees/instructorsandtraineeswidget.ui @@ -365,6 +365,12 @@ + + + 400 + 0 + + none @@ -372,6 +378,24 @@ + + + + + + Version of materials: + + + + + + + ... + + + + +