QDebugStateSaver available only since Qt 5.1.
--HG-- branch : develop
This commit is contained in:
parent
fa4a249fc3
commit
70cc2b6f95
|
@ -363,7 +363,9 @@ QDataStream &operator>>(QDataStream &s, QMarginsF &m)
|
||||||
#ifndef QT_NO_DEBUG_STREAM
|
#ifndef QT_NO_DEBUG_STREAM
|
||||||
QDebug operator<<(QDebug dbg, const QMarginsF &m)
|
QDebug operator<<(QDebug dbg, const QMarginsF &m)
|
||||||
{
|
{
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)
|
||||||
QDebugStateSaver saver(dbg);
|
QDebugStateSaver saver(dbg);
|
||||||
|
#endif // QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)
|
||||||
dbg.nospace();
|
dbg.nospace();
|
||||||
dbg << "QMarginsF" << '(';
|
dbg << "QMarginsF" << '(';
|
||||||
dbg << m.left() << ", " << m.top() << ", " << m.right() << ", " << m.bottom();
|
dbg << m.left() << ", " << m.top() << ", " << m.right() << ", " << m.bottom();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user