debug operator added
This commit is contained in:
parent
b78a77f4ff
commit
7b59793054
@ -976,3 +976,35 @@ void QskSkinnable::debug( QskAspect::State state ) const
|
||||
{
|
||||
qskDebugState( qDebug(), metaObject(), state );
|
||||
}
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
|
||||
#include <qdebug.h>
|
||||
|
||||
QDebug operator<<( QDebug debug, const QskSkinHintStatus& status )
|
||||
{
|
||||
QDebugStateSaver saver( debug );
|
||||
debug.nospace();
|
||||
|
||||
switch( status.source )
|
||||
{
|
||||
case QskSkinHintStatus::Skinnable:
|
||||
debug << "Skinnable";
|
||||
break;
|
||||
case QskSkinHintStatus::Skin:
|
||||
debug << "Skin";
|
||||
break;
|
||||
case QskSkinHintStatus::Animator:
|
||||
debug << "Animator";
|
||||
break;
|
||||
default:
|
||||
debug << "None";
|
||||
break;
|
||||
}
|
||||
|
||||
debug << ": " << status.aspect;
|
||||
|
||||
return debug;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -60,6 +60,13 @@ class QSK_EXPORT QskSkinHintStatus
|
||||
QskAspect::Aspect aspect;
|
||||
};
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
|
||||
class QDebug;
|
||||
QSK_EXPORT QDebug operator<<( QDebug, const QskSkinHintStatus& );
|
||||
|
||||
#endif
|
||||
|
||||
class QSK_EXPORT QskSkinnable
|
||||
{
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user