diff --git a/LibInstructorsAndTrainees/instructorsandtraineeswidget.cpp b/LibInstructorsAndTrainees/instructorsandtraineeswidget.cpp index 7cc4fe0..118f36b 100644 --- a/LibInstructorsAndTrainees/instructorsandtraineeswidget.cpp +++ b/LibInstructorsAndTrainees/instructorsandtraineeswidget.cpp @@ -30,6 +30,7 @@ InstructorsAndTraineesWidget::InstructorsAndTraineesWidget(QWidget *parent) : cntTryConnectToServer(0), flTryLogin(false), language(languageENG), + versionStr("..."), ui(new Ui::InstructorsAndTraineesWidget) { ui->setupUi(this); @@ -156,6 +157,7 @@ void InstructorsAndTraineesWidget::changeEvent(QEvent *event) updateLabelLoggedInInstructor(instructorLoggedInLocal); updateLabelServer(); + updateLabelVersion(); } } @@ -324,8 +326,8 @@ void InstructorsAndTraineesWidget::slot_ErrorAuth(QString error) void InstructorsAndTraineesWidget::slot_SetVersion(StreamingVersionData *serverVersion) { - QString viewName = serverVersion->getViewName(); - ui->lblVersionText->setText(viewName); + versionStr = serverVersion->getViewName(); + ui->lblVersionText->setText(versionStr); } void InstructorsAndTraineesWidget::slot_ConnectedToServer(bool state) @@ -628,6 +630,11 @@ void InstructorsAndTraineesWidget::updateLabelServer() } } +void InstructorsAndTraineesWidget::updateLabelVersion() +{ + ui->lblVersionText->setText(versionStr); +} + void InstructorsAndTraineesWidget::setLanguageInterfase() { ServerSettings settings; diff --git a/LibInstructorsAndTrainees/instructorsandtraineeswidget.h b/LibInstructorsAndTrainees/instructorsandtraineeswidget.h index 1d3008e..a24c9bf 100644 --- a/LibInstructorsAndTrainees/instructorsandtraineeswidget.h +++ b/LibInstructorsAndTrainees/instructorsandtraineeswidget.h @@ -89,6 +89,7 @@ private: bool authorizationIsCompleted(); void updateLabelLoggedInInstructor(Instructor& instructor); void updateLabelServer(); + void updateLabelVersion(); void setLanguageInterfase(); private: @@ -117,6 +118,8 @@ private: QTranslator qtLanguageTranslator; QString language; + QString versionStr; + Ui::InstructorsAndTraineesWidget *ui; };