src/gui/styles/qstyleoption.cpp
changeset 33 3e2da88830cd
parent 18 2f34d5167611
--- a/src/gui/styles/qstyleoption.cpp	Tue Jul 06 15:10:48 2010 +0300
+++ b/src/gui/styles/qstyleoption.cpp	Wed Aug 18 10:37:55 2010 +0300
@@ -5419,9 +5419,10 @@
     Returns a T or 0 depending on the type of \a hint.
 */
 
+#if !defined(QT_NO_DEBUG_STREAM)
 QDebug operator<<(QDebug debug, const QStyleOption::OptionType &optionType)
 {
-#if !defined(QT_NO_DEBUG) && !defined(QT_NO_DEBUG_STREAM)
+#if !defined(QT_NO_DEBUG)
     switch (optionType) {
     case QStyleOption::SO_Default:
         debug << "SO_Default"; break;
@@ -5488,7 +5489,7 @@
 
 QDebug operator<<(QDebug debug, const QStyleOption &option)
 {
-#if !defined(QT_NO_DEBUG) && !defined(QT_NO_DEBUG_STREAM)
+#if !defined(QT_NO_DEBUG)
     debug << "QStyleOption(";
     debug << QStyleOption::OptionType(option.type);
     debug << ',' << (option.direction == Qt::RightToLeft ? "RightToLeft" : "LeftToRight");
@@ -5498,5 +5499,6 @@
 #endif
     return debug;
 }
+#endif
 
 QT_END_NAMESPACE