From 53a9c9e2c01199aec3c0848593226f8a3e7d5dee Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 22 Oct 2015 16:52:10 +0200 Subject: Move the code snippets to a more logical place They are part of the documentation, but just auto-tested to ensure that they are actually creatable and don't throw warnings. Therefore the logical place is in the doc/snippets folder instead of somewhere in the tests/ tree. Change-Id: Id79a19890f7457ef277e7434a3fc6b6fb20eaa25 Reviewed-by: Mitch Curtis --- tests/auto/snippets/tst_snippets.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/auto/snippets/tst_snippets.cpp') diff --git a/tests/auto/snippets/tst_snippets.cpp b/tests/auto/snippets/tst_snippets.cpp index f7191724..de9aa281 100644 --- a/tests/auto/snippets/tst_snippets.cpp +++ b/tests/auto/snippets/tst_snippets.cpp @@ -59,12 +59,12 @@ void tst_Snippets::initTestCase() QDir outdir(QDir::current().filePath("screenshots")); QVERIFY(outdir.exists() || QDir::current().mkpath("screenshots")); - QString datadir = QFINDTESTDATA("data"); + QString datadir(QQC2_SNIPPETS_PATH); QVERIFY(!datadir.isEmpty()); qInfo() << datadir; - QDirIterator it(datadir, QStringList() << "*.qml", QDir::Files | QDir::Readable, QDirIterator::Subdirectories); + QDirIterator it(datadir, QStringList() << "qtlabs*.qml", QDir::Files | QDir::Readable, QDirIterator::Subdirectories); while (it.hasNext()) { QFileInfo fi(it.next()); filePaths.insert(fi.baseName(), qMakePair(fi.filePath(), outdir.filePath(fi.baseName() + ".png"))); -- cgit v1.2.3