summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2012-12-06 15:47:26 +0100
committerKarsten Heimrich <karsten.heimrich@digia.com>2012-12-07 13:15:35 +0100
commit40b40e6274e4db14531461c455c88378d12d85f2 (patch)
tree71b74c31dd349aae200a857050747fdcc7397910 /tools
parentfd4c75df63d65e5a97ebc71c8247713ace45ffc9 (diff)
Finally IFW compiles with Qt5 (use private headers)
Change-Id: I2604c77418e4a930bd0f76092db581fef1e45817 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/binarycreator/binarycreator.cpp2
-rw-r--r--tools/binarycreator/rcc/rcc.cpp8
2 files changed, 10 insertions, 0 deletions
diff --git a/tools/binarycreator/binarycreator.cpp b/tools/binarycreator/binarycreator.cpp
index 8002f16be..bd8ba3af7 100644
--- a/tools/binarycreator/binarycreator.cpp
+++ b/tools/binarycreator/binarycreator.cpp
@@ -343,6 +343,8 @@ static int runRcc(const QStringList &args)
for (int i = 0; i < argc; ++i)
argv[i] = qstrdup(qPrintable(args[i]));
+ // Note: this does not run the rcc provided by Qt, this one is using the compiled in binarycreator
+ // version. If it happens that resource mapping fails, we might need to adapt the code here...
const int result = runRcc(argc, argv.data());
foreach (char *arg, argv)
diff --git a/tools/binarycreator/rcc/rcc.cpp b/tools/binarycreator/rcc/rcc.cpp
index de1cfc566..2311fb66c 100644
--- a/tools/binarycreator/rcc/rcc.cpp
+++ b/tools/binarycreator/rcc/rcc.cpp
@@ -288,7 +288,11 @@ qint64 RCCFileInfo::writeDataName(RCCResourceLibrary &lib, qint64 offset)
offset += 2;
// write the hash
+#if QT_VERSION < 0x050000
lib.writeNumber4(qHash(m_name));
+#else
+ lib.writeNumber4(qt_hash(m_name));
+#endif
if (text)
lib.writeString("\n ");
offset += 4;
@@ -791,7 +795,11 @@ bool RCCResourceLibrary::writeDataNames()
static bool qt_rcc_compare_hash(const RCCFileInfo *left, const RCCFileInfo *right)
{
+#if QT_VERSION < 0x050000
return qHash(left->m_name) < qHash(right->m_name);
+#else
+ return qt_hash(left->m_name) < qt_hash(right->m_name);
+#endif
}
bool RCCResourceLibrary::writeDataStructure()