src/gui/styles/qstyle.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
  2415                                         const QWidget * /* widget */) const
  2415                                         const QWidget * /* widget */) const
  2416 {
  2416 {
  2417     return -1;
  2417     return -1;
  2418 }
  2418 }
  2419 
  2419 
  2420 #if !defined(QT_NO_DEBUG) && !defined(QT_NO_DEBUG_STREAM)
       
  2421 QT_BEGIN_INCLUDE_NAMESPACE
  2420 QT_BEGIN_INCLUDE_NAMESPACE
  2422 #include <QDebug>
  2421 #include <QDebug>
  2423 QT_END_INCLUDE_NAMESPACE
  2422 QT_END_INCLUDE_NAMESPACE
  2424 
  2423 
  2425 QDebug operator<<(QDebug debug, QStyle::State state)
  2424 QDebug operator<<(QDebug debug, QStyle::State state)
  2426 {
  2425 {
       
  2426 #if !defined(QT_NO_DEBUG) && !defined(QT_NO_DEBUG_STREAM)
  2427     debug << "QStyle::State(";
  2427     debug << "QStyle::State(";
  2428 
  2428 
  2429     QStringList states;
  2429     QStringList states;
  2430     if (state & QStyle::State_Active) states << QLatin1String("Active");
  2430     if (state & QStyle::State_Active) states << QLatin1String("Active");
  2431     if (state & QStyle::State_AutoRaise) states << QLatin1String("AutoRaise");
  2431     if (state & QStyle::State_AutoRaise) states << QLatin1String("AutoRaise");
  2453     if (state & QStyle::State_UpArrow) states << QLatin1String("UpArrow");
  2453     if (state & QStyle::State_UpArrow) states << QLatin1String("UpArrow");
  2454 
  2454 
  2455     qSort(states);
  2455     qSort(states);
  2456     debug << states.join(QLatin1String(" | "));
  2456     debug << states.join(QLatin1String(" | "));
  2457     debug << ')';
  2457     debug << ')';
       
  2458 #endif
  2458     return debug;
  2459     return debug;
  2459 }
  2460 }
  2460 #endif
       
  2461 
  2461 
  2462 /*!
  2462 /*!
  2463     \since 4.6
  2463     \since 4.6
  2464 
  2464 
  2465     \fn const QStyle *QStyle::proxy() const
  2465     \fn const QStyle *QStyle::proxy() const