Skip to content
Snippets Groups Projects
Commit 049db19d authored by Shane Bradley's avatar Shane Bradley Committed by Eike Ziller
Browse files

qttest: Fix updating test view when changes happen in Projects

Change-Id: I9ee4ca7643ffd04dbf466412c71ec5471de1eb1c
Reviewed-on: http://codereview.qt.nokia.com/3904


Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarBill King <bill.king@nokia.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent f9a09938
No related branches found
No related tags found
No related merge requests found
......@@ -198,6 +198,9 @@ void QtTestPlugin::extensionsInitialized()
ProjectExplorer::ProjectExplorerPlugin *explorer =
ProjectExplorer::ProjectExplorerPlugin::instance();
connect(explorer->session(), SIGNAL(startupProjectChanged(ProjectExplorer::Project*)),
this, SLOT(onStartupProjectChanged(ProjectExplorer::Project *)));
connect(core->progressManager(), SIGNAL(allTasksFinished(QString)),
this, SLOT(onAllTasksFinished(QString)));
......@@ -215,6 +218,11 @@ void QtTestPlugin::onDefectSelected(TestCaseRec rec)
}
}
void QtTestPlugin::onStartupProjectChanged(ProjectExplorer::Project *project)
{
TestConfigurations::instance().setActiveConfiguration(project);
}
void QtTestPlugin::onProjectRemoved(ProjectExplorer::Project *project)
{
if (project == startupProject())
......
......@@ -71,6 +71,7 @@ public:
public slots:
void onDefectSelected(TestCaseRec rec);
void onStartupProjectChanged(ProjectExplorer::Project *project);
void onProjectRemoved(ProjectExplorer::Project *project);
void onAllTasksFinished(const QString &);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment