equal
deleted
inserted
replaced
968 \internal |
968 \internal |
969 */ |
969 */ |
970 QDebug operator<<(QDebug dbg, const QBrush &b) |
970 QDebug operator<<(QDebug dbg, const QBrush &b) |
971 { |
971 { |
972 #ifndef Q_BROKEN_DEBUG_STREAM |
972 #ifndef Q_BROKEN_DEBUG_STREAM |
973 dbg.nospace() << "QBrush(" << b.color() << ',' << b.style() << ')'; |
973 static const char *BRUSH_STYLES[] = { |
|
974 "NoBrush", |
|
975 "SolidPattern", |
|
976 "Dense1Pattern", |
|
977 "Dense2Pattern", |
|
978 "Dense3Pattern", |
|
979 "Dense4Pattern", |
|
980 "Dense5Pattern", |
|
981 "Dense6Pattern", |
|
982 "Dense7Pattern", |
|
983 "HorPattern", |
|
984 "VerPattern", |
|
985 "CrossPattern", |
|
986 "BDiagPattern", |
|
987 "FDiagPattern", |
|
988 "DiagCrossPattern", |
|
989 "LinearGradientPattern", |
|
990 "RadialGradientPattern", |
|
991 "ConicalGradientPattern", |
|
992 "TexturePattern" |
|
993 }; |
|
994 |
|
995 dbg.nospace() << "QBrush(" << b.color() << ',' << BRUSH_STYLES[b.style()] << ')'; |
974 return dbg.space(); |
996 return dbg.space(); |
975 #else |
997 #else |
976 qWarning("This compiler doesn't support streaming QBrush to QDebug"); |
998 qWarning("This compiler doesn't support streaming QBrush to QDebug"); |
977 return dbg; |
999 return dbg; |
978 Q_UNUSED(b); |
1000 Q_UNUSED(b); |