Do not try to evaluate examples or demos for Qt 5.

There is no good plan on how to expose examples and demos
of Qt 5 other than using XML manifests. Thus, it's best
to disable the fallback mechanism, as it can only break
(see e.g. QTCREATORBUG-5472).

Change-Id: I4cc1fa875297c3d368ae261f5404fa61301f172f
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
Daniel Molkentin
2011-10-27 18:32:31 +02:00
committed by Eike Ziller
parent 5dcf7d2ef0
commit d6fa81cd95

View File

@@ -275,6 +275,9 @@ QStringList ExamplesListModel::exampleSources() const
// Try to get dir from first Qt Version
QtVersionManager *versionManager = QtVersionManager::instance();
foreach (BaseQtVersion *version, versionManager->validVersions()) {
// There is no good solution for Qt 5 yet
if (version->qtVersion().majorVersion != 4)
continue;
QDir examplesDir(version->examplesPath());
if (examplesDir.exists()) {