From 70cc2b6f9575eb4739a85d8fc629967ffe0ccb38 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 28 Nov 2015 12:36:54 +0200 Subject: [PATCH] QDebugStateSaver available only since Qt 5.1. --HG-- branch : develop --- src/libs/vmisc/backport/qmarginsf.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/vmisc/backport/qmarginsf.cpp b/src/libs/vmisc/backport/qmarginsf.cpp index cfff0d988..b5597111e 100644 --- a/src/libs/vmisc/backport/qmarginsf.cpp +++ b/src/libs/vmisc/backport/qmarginsf.cpp @@ -363,7 +363,9 @@ QDataStream &operator>>(QDataStream &s, QMarginsF &m) #ifndef QT_NO_DEBUG_STREAM QDebug operator<<(QDebug dbg, const QMarginsF &m) { +#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0) QDebugStateSaver saver(dbg); +#endif // QT_VERSION >= QT_VERSION_CHECK(5, 1, 0) dbg.nospace(); dbg << "QMarginsF" << '('; dbg << m.left() << ", " << m.top() << ", " << m.right() << ", " << m.bottom();