forked from qt-creator/qt-creator
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:
committed by
Eike Ziller
parent
5dcf7d2ef0
commit
d6fa81cd95
@@ -275,6 +275,9 @@ QStringList ExamplesListModel::exampleSources() const
|
|||||||
// Try to get dir from first Qt Version
|
// Try to get dir from first Qt Version
|
||||||
QtVersionManager *versionManager = QtVersionManager::instance();
|
QtVersionManager *versionManager = QtVersionManager::instance();
|
||||||
foreach (BaseQtVersion *version, versionManager->validVersions()) {
|
foreach (BaseQtVersion *version, versionManager->validVersions()) {
|
||||||
|
// There is no good solution for Qt 5 yet
|
||||||
|
if (version->qtVersion().majorVersion != 4)
|
||||||
|
continue;
|
||||||
|
|
||||||
QDir examplesDir(version->examplesPath());
|
QDir examplesDir(version->examplesPath());
|
||||||
if (examplesDir.exists()) {
|
if (examplesDir.exists()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user