equal
deleted
inserted
replaced
323 |
323 |
324 The drawing of item view headers is also done by the style, giving |
324 The drawing of item view headers is also done by the style, giving |
325 control over size of header items and row and column sizes. |
325 control over size of header items and row and column sizes. |
326 |
326 |
327 \sa QStyleOption, QStylePainter, {Styles Example}, |
327 \sa QStyleOption, QStylePainter, {Styles Example}, |
328 {Implementing Styles and Style Aware Widgets}, QStyledItemDelegate |
328 {Styles & Style Aware Widgets}, QStyledItemDelegate |
329 */ |
329 */ |
330 |
330 |
331 /*! |
331 /*! |
332 Constructs a style object. |
332 Constructs a style object. |
333 */ |
333 */ |
2419 |
2419 |
2420 QT_BEGIN_INCLUDE_NAMESPACE |
2420 QT_BEGIN_INCLUDE_NAMESPACE |
2421 #include <QDebug> |
2421 #include <QDebug> |
2422 QT_END_INCLUDE_NAMESPACE |
2422 QT_END_INCLUDE_NAMESPACE |
2423 |
2423 |
|
2424 #if !defined(QT_NO_DEBUG_STREAM) |
2424 QDebug operator<<(QDebug debug, QStyle::State state) |
2425 QDebug operator<<(QDebug debug, QStyle::State state) |
2425 { |
2426 { |
2426 #if !defined(QT_NO_DEBUG) && !defined(QT_NO_DEBUG_STREAM) |
2427 #if !defined(QT_NO_DEBUG) |
2427 debug << "QStyle::State("; |
2428 debug << "QStyle::State("; |
2428 |
2429 |
2429 QStringList states; |
2430 QStringList states; |
2430 if (state & QStyle::State_Active) states << QLatin1String("Active"); |
2431 if (state & QStyle::State_Active) states << QLatin1String("Active"); |
2431 if (state & QStyle::State_AutoRaise) states << QLatin1String("AutoRaise"); |
2432 if (state & QStyle::State_AutoRaise) states << QLatin1String("AutoRaise"); |
2456 debug << states.join(QLatin1String(" | ")); |
2457 debug << states.join(QLatin1String(" | ")); |
2457 debug << ')'; |
2458 debug << ')'; |
2458 #endif |
2459 #endif |
2459 return debug; |
2460 return debug; |
2460 } |
2461 } |
|
2462 #endif |
2461 |
2463 |
2462 /*! |
2464 /*! |
2463 \since 4.6 |
2465 \since 4.6 |
2464 |
2466 |
2465 \fn const QStyle *QStyle::proxy() const |
2467 \fn const QStyle *QStyle::proxy() const |