qttest: Fix updating test view when changes happen in Projects

Change-Id: I9ee4ca7643ffd04dbf466412c71ec5471de1eb1c
Reviewed-on: http://codereview.qt.nokia.com/3904
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
Shane Bradley
2011-08-31 13:25:36 +10:00
committed by Eike Ziller
parent f9a0993815
commit 049db19d84
2 changed files with 9 additions and 0 deletions

View File

@@ -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())

View File

@@ -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 &);