From 852504da0514d6577971cf78fd3ec6dd1f7a48bf Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 5 Jul 2018 13:02:25 +0200 Subject: [PATCH] beautified --- src/controls/QskHintAnimator.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/controls/QskHintAnimator.cpp b/src/controls/QskHintAnimator.cpp index 2443c143..7391ec8d 100644 --- a/src/controls/QskHintAnimator.cpp +++ b/src/controls/QskHintAnimator.cpp @@ -62,10 +62,10 @@ static inline QVariant qskAligned05( const QVariant& value ) { for ( int i = Qt::TopLeftCorner; i <= Qt::BottomRightCorner; i++ ) { - const auto corner = static_cast( i ); + const auto corner = static_cast< Qt::Corner >( i ); metrics.setRadius( corner, qskAligned05( metrics.radius( corner ) ) ); } - + return QVariant::fromValue( metrics ); } } @@ -80,7 +80,7 @@ static inline QVariant qskAligned05( const QVariant& value ) #endif -static inline bool qskCheckReceiverThread( const QObject *receiver ) +static inline bool qskCheckReceiverThread( const QObject* receiver ) { /* QskInputPanelSkinlet changes the skin state, what leads to @@ -89,12 +89,12 @@ static inline bool qskCheckReceiverThread( const QObject *receiver ) in QCoreApplication::sendEvent */ - const QThread *thread = receiver->thread(); + const QThread* thread = receiver->thread(); if ( thread == nullptr ) return true; return ( thread == QThread::currentThread() ); -} +} QskHintAnimator::QskHintAnimator() { @@ -146,7 +146,7 @@ namespace AnimatorGuard() { QskAnimator::addCleanupHandler( this, - SLOT( cleanup() ), Qt::QueuedConnection ); + SLOT(cleanup()), Qt::QueuedConnection ); } void registerTable( QskHintAnimatorTable* table )