diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/quick/examples/tst_examples.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/auto/quick/examples/tst_examples.cpp b/tests/auto/quick/examples/tst_examples.cpp index 22df7b89a5..f9994a76bc 100644 --- a/tests/auto/quick/examples/tst_examples.cpp +++ b/tests/auto/quick/examples/tst_examples.cpp @@ -179,9 +179,16 @@ void tst_examples::namingConvention(const QDir &d) void tst_examples::namingConvention() { - QString examples = QLibraryInfo::location(QLibraryInfo::ExamplesPath); - - namingConvention(QDir(examples)); + QStringList examplesLocations; + examplesLocations << QLibraryInfo::location(QLibraryInfo::ExamplesPath) + QLatin1String("/qtdeclarative"); + examplesLocations << QLibraryInfo::location(QLibraryInfo::ExamplesPath) + QLatin1String("/qtquick"); + examplesLocations << QLibraryInfo::location(QLibraryInfo::ExamplesPath) + QLatin1String("/qtqml"); + + foreach(const QString &examples, examplesLocations) { + QDir d(examples); + if (d.exists()) + namingConvention(d); + } } QStringList tst_examples::findQmlFiles(const QDir &d) |