Merge remote branch 'origin/2.1'

Conflicts:
	doc/qtcreator.qdoc
This commit is contained in:
Oswald Buddenhagen
2010-11-01 12:11:03 +01:00
39 changed files with 930 additions and 496 deletions

View File

@@ -240,6 +240,17 @@ void QtVersionManager::updateExamples()
candidates.append(version);
}
// in SDKs, we want to prefer the Qt version shipping with the SDK
QString preferred = Core::ICore::instance()->settings()->value("General/PreferredQMakePath").toString();
if (!preferred.isEmpty()) {
foreach (version, candidates) {
if (version->qmakeCommand() == preferred) {
emit updateExamples(version->examplesPath(), version->demosPath(), version->sourcePath());
return;
}
}
}
// prefer versions with declarative examples
foreach (version, candidates) {
if (QDir(version->examplesPath()+"/declarative").exists()) {