Find examples also with shadow built Qt developer build.

Reviewed-by: Daniel Molkentin
This commit is contained in:
con
2009-07-27 12:28:25 +02:00
parent dd408d10e6
commit 80705c163f
4 changed files with 15 additions and 16 deletions

View File

@@ -121,11 +121,6 @@ QtVersionManager::QtVersionManager()
writeVersionsIntoSettings();
if (Welcome::WelcomeMode *welcomeMode = qobject_cast<Welcome::WelcomeMode*>
(Core::ICore::instance()->modeManager()->mode(Core::Constants::MODE_WELCOME))) {
connect(this, SIGNAL(updatedExamples(QString, QString)),
welcomeMode, SIGNAL(updatedExamples(QString, QString)));
}
updateDocumentation();
updateExamples();
}
@@ -190,7 +185,9 @@ void QtVersionManager::updateExamples()
if (version->hasDemos())
demosPath = version->demosPath();
if (!examplesPath.isEmpty() && !demosPath.isEmpty()) {
emit updatedExamples(examplesPath, demosPath);
if (Welcome::WelcomeMode *welcomeMode = qobject_cast<Welcome::WelcomeMode*>
(Core::ICore::instance()->modeManager()->mode(Core::Constants::MODE_WELCOME)))
welcomeMode->updateExamples(examplesPath, demosPath, version->sourcePath());
return;
}
}