DebuggingHelper: Always invalidate cached QtVersion information after run

Moving this to DebuggingHelperBuildTask / QtVersionManager makes sure
the version information is also updated if e.g. the QtOptionsPage has
been closed in between.

Also, update all Qt versions that share the same qmake path.

Change-Id: Idc23f6d9fa609e2a36f1d6d4cb09c6483afd4cc4
This commit is contained in:
Kai Koehne
2011-05-09 11:19:37 +02:00
parent e6b58f234b
commit 91259db4fb
6 changed files with 23 additions and 4 deletions

View File

@@ -370,6 +370,19 @@ void QtVersionManager::updateDocumentation()
helpManager->registerDocumentation(files);
}
void QtVersionManager::updateQtVersion(int id)
{
BaseQtVersion *qtVersion = version(id);
QTC_ASSERT(qtVersion, return);
// update actually all Qt versions with the same qmake command
const QString qmakeCommand = qtVersion->qmakeCommand();
foreach (BaseQtVersion *v, versions()) {
if (v->qmakeCommand() == qmakeCommand)
v->recheckDumper();
}
}
void QtVersionManager::updateSettings()
{
updateDocumentation();