QDebugStateSaver available only since Qt 5.1.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-11-28 12:36:54 +02:00
parent fa4a249fc3
commit 70cc2b6f95

View File

@ -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();