diff options
author | kh1 <karsten.heimrich@digia.com> | 2012-12-06 15:47:26 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2012-12-07 13:15:35 +0100 |
commit | 40b40e6274e4db14531461c455c88378d12d85f2 (patch) | |
tree | 71b74c31dd349aae200a857050747fdcc7397910 /tools/binarycreator/rcc | |
parent | fd4c75df63d65e5a97ebc71c8247713ace45ffc9 (diff) |
Finally IFW compiles with Qt5 (use private headers)
Change-Id: I2604c77418e4a930bd0f76092db581fef1e45817
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'tools/binarycreator/rcc')
-rw-r--r-- | tools/binarycreator/rcc/rcc.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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() |