aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/snippets/tst_snippets.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-22 16:52:10 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-30 15:41:26 +0000
commit53a9c9e2c01199aec3c0848593226f8a3e7d5dee (patch)
tree82dc1480fcd2817da1e206ffd9863021c4b3f107 /tests/auto/snippets/tst_snippets.cpp
parent72f3a5a0957e4347f8f3db6d4638866e52a8ab61 (diff)
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 <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests/auto/snippets/tst_snippets.cpp')
-rw-r--r--tests/auto/snippets/tst_snippets.cpp4
1 files changed, 2 insertions, 2 deletions
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")));