Skip to content

Commit dfc5383

Browse files
committed
fix Qt::hex if < 5.15. #1401
1 parent ce21c55 commit dfc5383

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Packet.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,10 @@ void Packet::skip(int bytes)
222222
#ifndef QT_NO_DEBUG_STREAM
223223
QDebug operator<<(QDebug dbg, const Packet &pkt)
224224
{
225-
dbg.nospace() << "QtAV::Packet.data " << Qt::hex << (qptrdiff)pkt.data.constData() << "+" << Qt::dec << pkt.data.size();
225+
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
226+
using Qt::hex, Qt::dec;
227+
#endif
228+
dbg.nospace() << "QtAV::Packet.data " << hex << (qptrdiff)pkt.data.constData() << "+" << dec << pkt.data.size();
226229
dbg.nospace() << ", dts: " << pkt.dts;
227230
dbg.nospace() << ", pts: " << pkt.pts;
228231
dbg.nospace() << ", duration: " << pkt.duration;

0 commit comments

Comments
 (0)