Skip to content

Commit 8a16ee0

Browse files
committed
fixed RCC under QT5+ (which uses different qHash implementation)
1 parent 4296b13 commit 8a16ee0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/rcc/rcc.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,11 @@ qint64 RCCFileInfo::writeDataName(RCCResourceLibrary &lib, qint64 offset)
302302
offset += 2;
303303

304304
// write the hash
305+
#if QT_VERSION >= 0x050000
306+
lib.writeNumber4(qt_hash(m_name));
307+
#else
305308
lib.writeNumber4(qHash(m_name));
309+
#endif
306310
if (text)
307311
lib.writeString("\n ");
308312
offset += 4;

0 commit comments

Comments
 (0)