summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qstyleoption.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2010-07-14 16:35:09 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2010-07-14 16:35:09 (GMT)
commit4e2eb2945dbc3865e2901f12d663ed89e8f0dfbf (patch)
tree883c28b71502f0352e5111d166576c1f834063f3 /src/gui/styles/qstyleoption.cpp
parent21fbfdb2acdc368c047d14004373d2d0baa6c0b1 (diff)
downloadQt-4e2eb2945dbc3865e2901f12d663ed89e8f0dfbf.zip
Qt-4e2eb2945dbc3865e2901f12d663ed89e8f0dfbf.tar.gz
Qt-4e2eb2945dbc3865e2901f12d663ed89e8f0dfbf.tar.bz2
Compile with QT_NO_DEBUG_STREAM
Task-number: QTBUG-11510
Diffstat (limited to 'src/gui/styles/qstyleoption.cpp')
-rw-r--r--src/gui/styles/qstyleoption.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/styles/qstyleoption.cpp b/src/gui/styles/qstyleoption.cpp
index c057a2b..eeab316 100644
--- a/src/gui/styles/qstyleoption.cpp
+++ b/src/gui/styles/qstyleoption.cpp
@@ -5419,9 +5419,9 @@ QStyleHintReturnVariant::QStyleHintReturnVariant() : QStyleHintReturn(Version, T
Returns a T or 0 depending on the type of \a hint.
*/
+#if !defined(QT_NO_DEBUG) && !defined(QT_NO_DEBUG_STREAM)
QDebug operator<<(QDebug debug, const QStyleOption::OptionType &optionType)
{
-#if !defined(QT_NO_DEBUG) && !defined(QT_NO_DEBUG_STREAM)
switch (optionType) {
case QStyleOption::SO_Default:
debug << "SO_Default"; break;
@@ -5482,21 +5482,19 @@ QDebug operator<<(QDebug debug, const QStyleOption::OptionType &optionType)
case QStyleOption::SO_GraphicsItem:
debug << "SO_GraphicsItem"; break;
}
-#endif
return debug;
}
QDebug operator<<(QDebug debug, const QStyleOption &option)
{
-#if !defined(QT_NO_DEBUG) && !defined(QT_NO_DEBUG_STREAM)
debug << "QStyleOption(";
debug << QStyleOption::OptionType(option.type);
debug << ',' << (option.direction == Qt::RightToLeft ? "RightToLeft" : "LeftToRight");
debug << ',' << option.state;
debug << ',' << option.rect;
debug << ')';
-#endif
return debug;
}
+#endif
QT_END_NAMESPACE