debug operator added
This commit is contained in:
parent
6e10527a93
commit
8b6e00cc68
@ -75,3 +75,20 @@ void QskLayoutHint::normalize()
|
||||
m_maximum = qMax( m_minimum, m_maximum );
|
||||
m_preferred = qBound( m_minimum, m_preferred, m_maximum );
|
||||
}
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
|
||||
#include <qdebug.h>
|
||||
|
||||
QDebug operator<<( QDebug debug, const QskLayoutHint& hint )
|
||||
{
|
||||
QDebugStateSaver saver( debug );
|
||||
debug.nospace();
|
||||
|
||||
debug << "LayoutHint" << "( " << hint.minimum() << ", "
|
||||
<< hint.preferred() << ", " << hint.maximum() << " )";
|
||||
|
||||
return debug;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -4,6 +4,8 @@
|
||||
#include "QskGlobal.h"
|
||||
#include <qglobal.h>
|
||||
|
||||
class QDebug;
|
||||
|
||||
class QSK_EXPORT QskLayoutHint
|
||||
{
|
||||
public:
|
||||
@ -35,32 +37,32 @@ class QSK_EXPORT QskLayoutHint
|
||||
};
|
||||
|
||||
inline qreal QskLayoutHint::minimum() const
|
||||
{
|
||||
{
|
||||
return m_minimum;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
inline void QskLayoutHint::setMinimum( qreal value )
|
||||
{
|
||||
{
|
||||
m_minimum = value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
inline qreal QskLayoutHint::preferred() const
|
||||
{
|
||||
{
|
||||
return m_preferred;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
inline void QskLayoutHint::setPreferred( qreal value )
|
||||
{
|
||||
{
|
||||
m_preferred = value;
|
||||
}
|
||||
|
||||
inline qreal QskLayoutHint::maximum() const
|
||||
{
|
||||
{
|
||||
return m_maximum;
|
||||
}
|
||||
|
||||
inline void QskLayoutHint::setMaximum( qreal value )
|
||||
{
|
||||
{
|
||||
m_maximum = value;
|
||||
}
|
||||
|
||||
@ -76,6 +78,12 @@ inline bool QskLayoutHint::operator!=( const QskLayoutHint& other ) const
|
||||
return !( *this == other );
|
||||
}
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
|
||||
QSK_EXPORT QDebug operator<<( QDebug, const QskLayoutHint& );
|
||||
|
||||
#endif
|
||||
|
||||
Q_DECLARE_TYPEINFO( QskLayoutHint, Q_MOVABLE_TYPE );
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user