aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata-qt/auto-qrc/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/blackbox/testdata-qt/auto-qrc/main.cpp')
-rw-r--r--tests/auto/blackbox/testdata-qt/auto-qrc/main.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata-qt/auto-qrc/main.cpp b/tests/auto/blackbox/testdata-qt/auto-qrc/main.cpp
new file mode 100644
index 000000000..53a33854d
--- /dev/null
+++ b/tests/auto/blackbox/testdata-qt/auto-qrc/main.cpp
@@ -0,0 +1,18 @@
+#include <QFile>
+
+#include <iostream>
+
+int main()
+{
+ QFile resource1(":/thePrefix/resource1.txt");
+ if (!resource1.open(QIODevice::ReadOnly))
+ return 1;
+ QFile resource2(":/thePrefix/resource2.txt");
+ if (!resource2.open(QIODevice::ReadOnly))
+ return 2;
+ QFile resource3(":/theOtherPrefix/resource3.txt");
+ if (!resource3.open(QIODevice::ReadOnly))
+ return 3;
+ std::cout << "resource data: " << resource1.readAll().constData()
+ << resource2.readAll().constData() << resource3.readAll().constData() << std::endl;
+}