beautified

This commit is contained in:
Uwe Rathmann 2018-07-05 13:02:25 +02:00
parent 73d911cee2
commit 852504da05
1 changed files with 6 additions and 6 deletions

View File

@ -62,10 +62,10 @@ static inline QVariant qskAligned05( const QVariant& value )
{ {
for ( int i = Qt::TopLeftCorner; i <= Qt::BottomRightCorner; i++ ) for ( int i = Qt::TopLeftCorner; i <= Qt::BottomRightCorner; i++ )
{ {
const auto corner = static_cast<Qt::Corner>( i ); const auto corner = static_cast< Qt::Corner >( i );
metrics.setRadius( corner, qskAligned05( metrics.radius( corner ) ) ); metrics.setRadius( corner, qskAligned05( metrics.radius( corner ) ) );
} }
return QVariant::fromValue( metrics ); return QVariant::fromValue( metrics );
} }
} }
@ -80,7 +80,7 @@ static inline QVariant qskAligned05( const QVariant& value )
#endif #endif
static inline bool qskCheckReceiverThread( const QObject *receiver ) static inline bool qskCheckReceiverThread( const QObject* receiver )
{ {
/* /*
QskInputPanelSkinlet changes the skin state, what leads to QskInputPanelSkinlet changes the skin state, what leads to
@ -89,12 +89,12 @@ static inline bool qskCheckReceiverThread( const QObject *receiver )
in QCoreApplication::sendEvent in QCoreApplication::sendEvent
*/ */
const QThread *thread = receiver->thread(); const QThread* thread = receiver->thread();
if ( thread == nullptr ) if ( thread == nullptr )
return true; return true;
return ( thread == QThread::currentThread() ); return ( thread == QThread::currentThread() );
} }
QskHintAnimator::QskHintAnimator() QskHintAnimator::QskHintAnimator()
{ {
@ -146,7 +146,7 @@ namespace
AnimatorGuard() AnimatorGuard()
{ {
QskAnimator::addCleanupHandler( this, QskAnimator::addCleanupHandler( this,
SLOT( cleanup() ), Qt::QueuedConnection ); SLOT(cleanup()), Qt::QueuedConnection );
} }
void registerTable( QskHintAnimatorTable* table ) void registerTable( QskHintAnimatorTable* table )