From d035dbb1840dac41733e0b23c21240112e14d376 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Tue, 25 Feb 2014 16:52:20 +0100 Subject: [PATCH] Examples: Remove loading of *.xml files from Qt demos/examples dir Not sure what this code path did originally, but since at least Qt 4.8.0 examples, demos manifest files are only in doc. Change-Id: I6edf1f712fc06d290edf0fe978a6635966084e60 Reviewed-by: Thomas Hartmann --- src/plugins/qtsupport/exampleslistmodel.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/plugins/qtsupport/exampleslistmodel.cpp b/src/plugins/qtsupport/exampleslistmodel.cpp index 247c3822275..94a467c0bd8 100644 --- a/src/plugins/qtsupport/exampleslistmodel.cpp +++ b/src/plugins/qtsupport/exampleslistmodel.cpp @@ -502,8 +502,6 @@ QStringList ExamplesListModel::exampleSources(QString *examplesInstallPath, QStr if (size > 0) return sources; - const QStringList pattern(QLatin1String("*.xml")); - foreach (BaseQtVersion *version, qtVersions()) { //filter for qt versions if (version->uniqueId() != m_uniqueQtId && m_uniqueQtId != noQtVersionsId) @@ -527,14 +525,6 @@ QStringList ExamplesListModel::exampleSources(QString *examplesInstallPath, QStr *demosInstallPath = version->demosPath(); return sources; } - - fis << QDir(version->examplesPath()).entryInfoList(pattern); - fis << QDir(version->demosPath()).entryInfoList(pattern); - if (!fis.isEmpty()) { - foreach (const QFileInfo &fi, fis) - sources.append(fi.filePath()); - return sources; - } } return sources;