Commit cd798ae5 authored by Alexab's avatar Alexab
Browse files

Gui/Qt: Application verison info have been added.

--HG--
branch : MockCompsTest
parent f5b1d3fadc04
......@@ -25,7 +25,7 @@ UGEngineControllWidget::UGEngineControllWidget(QWidget *parent, RDK::UApplicatio
{
ui->setupUi(this);
setAccessibleName("UGEngineControllWidget");
this->setWindowTitle("Neuro Modeler");
this->setWindowTitle("Neuro Modeler "+QCoreApplication::applicationVersion());
application = app;
......@@ -267,7 +267,7 @@ void UGEngineControllWidget::actionLoadConfig()
{
application->OpenProject(fileName.toLocal8Bit().constData());
this->setWindowTitle("Neuro Modeler [Configuration: " + fileName+"]");
this->setWindowTitle("Neuro Modeler "+QCoreApplication::applicationVersion()+" [Configuration: " + fileName+"]");
/*QStringList list = configFileName.split("/");
list.pop_back();*/
......@@ -291,7 +291,7 @@ void UGEngineControllWidget::loadProjectExternal(const QString &config_path)
{
application->OpenProject(config_path.toLocal8Bit().constData());
this->setWindowTitle("Neuro Modeler [Configuration: " + config_path+"]");
this->setWindowTitle("Neuro Modeler "+QCoreApplication::applicationVersion()+" [Configuration: " + config_path+"]");
/*QStringList list = configFileName.split("/");
list.pop_back();*/
......@@ -330,7 +330,7 @@ void UGEngineControllWidget::actionCreateConfig()
createConfigurationWizardWidget->show();
if(application->GetProjectOpenFlag())
this->setWindowTitle(("Neuro Modeler [Configuration: " + application->GetProjectPath()+application->GetProjectFileName()+"]").c_str());
this->setWindowTitle("Neuro Modeler "+QCoreApplication::applicationVersion()+" [Configuration: " + application->GetProjectPath().c_str()+application->GetProjectFileName().c_str()+"]");
}
void UGEngineControllWidget::actionCreateSimple()
......@@ -386,7 +386,7 @@ void UGEngineControllWidget::actionCreateSimple()
application->CreateProject(file_name, classname);
this->setWindowTitle(("Neuro Modeler [Configuration: " + file_name+"]").c_str());
this->setWindowTitle("Neuro Modeler "+QCoreApplication::applicationVersion()+" [Configuration: " + file_name.c_str()+"]");
RDK::UIVisualControllerStorage::UpdateInterface();
}
catch(RDK::UException& e)
......@@ -410,7 +410,7 @@ void UGEngineControllWidget::actionCloseConfig()
{
application->PauseChannel(-1);
application->CloseProject();
this->setWindowTitle("Neuro Modeler");
this->setWindowTitle("Neuro Modeler"+QCoreApplication::applicationVersion());
RDK::UIVisualControllerStorage::UpdateInterface(true);
}
catch(RDK::UException& e)
......@@ -452,7 +452,7 @@ void UGEngineControllWidget::actionCopyConfig()
std::string open_file_name=res_path.toLocal8Bit().constData();
open_file_name+=project_file_name;
application->OpenProject(open_file_name);
this->setWindowTitle(QString("Neuro Modeler [Configuration: ") + open_file_name.c_str()+"]");
this->setWindowTitle(QString("Neuro Modeler "+QCoreApplication::applicationVersion()+" [Configuration: ") + open_file_name.c_str()+"]");
RDK::UIVisualControllerStorage::UpdateInterface(true);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment