forked from qt-creator/qt-creator
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:
committed by
Eike Ziller
parent
f9a0993815
commit
049db19d84
@@ -198,6 +198,9 @@ void QtTestPlugin::extensionsInitialized()
|
|||||||
ProjectExplorer::ProjectExplorerPlugin *explorer =
|
ProjectExplorer::ProjectExplorerPlugin *explorer =
|
||||||
ProjectExplorer::ProjectExplorerPlugin::instance();
|
ProjectExplorer::ProjectExplorerPlugin::instance();
|
||||||
|
|
||||||
|
connect(explorer->session(), SIGNAL(startupProjectChanged(ProjectExplorer::Project*)),
|
||||||
|
this, SLOT(onStartupProjectChanged(ProjectExplorer::Project *)));
|
||||||
|
|
||||||
connect(core->progressManager(), SIGNAL(allTasksFinished(QString)),
|
connect(core->progressManager(), SIGNAL(allTasksFinished(QString)),
|
||||||
this, SLOT(onAllTasksFinished(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)
|
void QtTestPlugin::onProjectRemoved(ProjectExplorer::Project *project)
|
||||||
{
|
{
|
||||||
if (project == startupProject())
|
if (project == startupProject())
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ public:
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void onDefectSelected(TestCaseRec rec);
|
void onDefectSelected(TestCaseRec rec);
|
||||||
|
void onStartupProjectChanged(ProjectExplorer::Project *project);
|
||||||
void onProjectRemoved(ProjectExplorer::Project *project);
|
void onProjectRemoved(ProjectExplorer::Project *project);
|
||||||
void onAllTasksFinished(const QString &);
|
void onAllTasksFinished(const QString &);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user