summaryrefslogtreecommitdiffstats
path: root/tests/auto/rcc/data
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-04-24 11:34:15 (GMT)
committeraxis <qt-info@nokia.com>2009-04-24 11:34:15 (GMT)
commit8f427b2b914d5b575a4a7c0ed65d2fb8f45acc76 (patch)
treea17e1a767a89542ab59907462206d7dcf2e504b2 /tests/auto/rcc/data
downloadQt-8f427b2b914d5b575a4a7c0ed65d2fb8f45acc76.zip
Qt-8f427b2b914d5b575a4a7c0ed65d2fb8f45acc76.tar.gz
Qt-8f427b2b914d5b575a4a7c0ed65d2fb8f45acc76.tar.bz2
Long live Qt for S60!
Diffstat (limited to 'tests/auto/rcc/data')
-rw-r--r--tests/auto/rcc/data/images.bin.expectedbin0 -> 663 bytes
-rw-r--r--tests/auto/rcc/data/images.expected126
-rw-r--r--tests/auto/rcc/data/images.qrc7
-rw-r--r--tests/auto/rcc/data/images/circle.pngbin0 -> 165 bytes
-rw-r--r--tests/auto/rcc/data/images/square.pngbin0 -> 94 bytes
-rw-r--r--tests/auto/rcc/data/images/subdir/triangle.pngbin0 -> 170 bytes
6 files changed, 133 insertions, 0 deletions
diff --git a/tests/auto/rcc/data/images.bin.expected b/tests/auto/rcc/data/images.bin.expected
new file mode 100644
index 0000000..cb67a25
--- /dev/null
+++ b/tests/auto/rcc/data/images.bin.expected
Binary files differ
diff --git a/tests/auto/rcc/data/images.expected b/tests/auto/rcc/data/images.expected
new file mode 100644
index 0000000..24d75b6
--- /dev/null
+++ b/tests/auto/rcc/data/images.expected
@@ -0,0 +1,126 @@
+/****************************************************************************
+** Resource object code
+**
+IGNORE: ** Created: Tue Jul 15 11:17:15 2008
+IGNORE: ** by: The Resource Compiler for Qt version 4.4.2
+**
+** WARNING! All changes made in this file will be lost!
+*****************************************************************************/
+
+#include <QtCore/qglobal.h>
+
+static const unsigned char qt_resource_data[] = {
+IGNORE: // /data5/dev/qt/tests/auto/rcc/data/images/square.png
+ 0x0,0x0,0x0,0x5e,
+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0,0x0,0x0,
+ 0x0,0x49,0x45,0x4e,0x44,0xae,0x42,0x60,0x82,
+
+};
+
+static const unsigned char qt_resource_name[] = {
+ // images
+ 0x0,0x6,
+ 0x7,0x3,0x7d,0xc3,
+ 0x0,0x69,
+ 0x0,0x6d,0x0,0x61,0x0,0x67,0x0,0x65,0x0,0x73,
+ // square.png
+ 0x0,0xa,
+ 0x8,0x8b,0x6,0x27,
+ 0x0,0x73,
+ 0x0,0x71,0x0,0x75,0x0,0x61,0x0,0x72,0x0,0x65,0x0,0x2e,0x0,0x70,0x0,0x6e,0x0,0x67,
+ // circle.png
+ 0x0,0xa,
+ 0xa,0x2d,0x16,0x47,
+ 0x0,0x63,
+ 0x0,0x69,0x0,0x72,0x0,0x63,0x0,0x6c,0x0,0x65,0x0,0x2e,0x0,0x70,0x0,0x6e,0x0,0x67,
+ // subdir
+ 0x0,0x6,
+ 0x7,0xab,0x8b,0x2,
+ 0x0,0x73,
+ 0x0,0x75,0x0,0x62,0x0,0x64,0x0,0x69,0x0,0x72,
+ // triangle.png
+ 0x0,0xc,
+ 0x5,0x59,0xa7,0xc7,
+ 0x0,0x74,
+ 0x0,0x72,0x0,0x69,0x0,0x61,0x0,0x6e,0x0,0x67,0x0,0x6c,0x0,0x65,0x0,0x2e,0x0,0x70,0x0,0x6e,0x0,0x67,
+
+};
+
+static const unsigned char qt_resource_struct[] = {
+ // :
+ 0x0,0x0,0x0,0x0,0x0,0x2,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x1,
+ // :/images
+ 0x0,0x0,0x0,0x0,0x0,0x2,0x0,0x0,0x0,0x3,0x0,0x0,0x0,0x2,
+ // :/images/subdir
+ 0x0,0x0,0x0,0x46,0x0,0x2,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x5,
+ // :/images/square.png
+ 0x0,0x0,0x0,0x12,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x0,
+ // :/images/circle.png
+ 0x0,0x0,0x0,0x2c,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x62,
+ // :/images/subdir/triangle.png
+ 0x0,0x0,0x0,0x58,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x1,0xb,
+
+};
+
+QT_BEGIN_NAMESPACE
+
+extern bool qRegisterResourceData
+ (int, const unsigned char *, const unsigned char *, const unsigned char *);
+
+extern bool qUnregisterResourceData
+ (int, const unsigned char *, const unsigned char *, const unsigned char *);
+
+QT_END_NAMESPACE
+
+
+int QT_MANGLE_NAMESPACE(qInitResources)()
+{
+ QT_PREPEND_NAMESPACE(qRegisterResourceData)
+ (0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
+ return 1;
+}
+
+Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources))
+
+int QT_MANGLE_NAMESPACE(qCleanupResources)()
+{
+ QT_PREPEND_NAMESPACE(qUnregisterResourceData)
+ (0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
+ return 1;
+}
+
+Q_DESTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qCleanupResources))
+
diff --git a/tests/auto/rcc/data/images.qrc b/tests/auto/rcc/data/images.qrc
new file mode 100644
index 0000000..773baef
--- /dev/null
+++ b/tests/auto/rcc/data/images.qrc
@@ -0,0 +1,7 @@
+<!DOCTYPE RCC><RCC version="1.0">
+<qresource>
+ <file>images/circle.png</file>
+ <file>images/square.png</file>
+ <file>images/subdir/triangle.png</file>
+</qresource>
+</RCC>
diff --git a/tests/auto/rcc/data/images/circle.png b/tests/auto/rcc/data/images/circle.png
new file mode 100644
index 0000000..dc392cb
--- /dev/null
+++ b/tests/auto/rcc/data/images/circle.png
Binary files differ
diff --git a/tests/auto/rcc/data/images/square.png b/tests/auto/rcc/data/images/square.png
new file mode 100644
index 0000000..c0fd2d5
--- /dev/null
+++ b/tests/auto/rcc/data/images/square.png
Binary files differ
diff --git a/tests/auto/rcc/data/images/subdir/triangle.png b/tests/auto/rcc/data/images/subdir/triangle.png
new file mode 100644
index 0000000..2ee15f8
--- /dev/null
+++ b/tests/auto/rcc/data/images/subdir/triangle.png
Binary files differ