Change-Id: Id34e29546a22a74a7ae2ad90ee3a8deabccddddd
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
void tst_examples::namingConvention()
{
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)
}
QStringList tst_examples::findQmlFiles(const QDir &d)