summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
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()