6#include "QskFontRole.h"
9static void qskRegisterFontRole()
11 qRegisterMetaType< QskFontRole >();
13#if QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 )
14 QMetaType::registerEqualsComparator< QskFontRole >();
18Q_CONSTRUCTOR_FUNCTION( qskRegisterFontRole )
20QskHashValue QskFontRole::hash( QskHashValue seed )
const noexcept
22 const auto v =
static_cast< ushort
>( category() )
23 | (
static_cast< ushort
>( emphasis() ) << 8 );
25 return qHash( v, seed );
28#ifndef QT_NO_DEBUG_STREAM
32QDebug operator<<( QDebug debug,
const QskFontRole& fontRole )
34 QDebugStateSaver saver( debug );
37 debug <<
"FontRole( " << fontRole.category()
38 <<
", " << fontRole.emphasis() <<
" )";
45#include "moc_QskFontRole.cpp"