From 325c6214856148f794c50ac7b16c8a2558e05d1d Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 24 Oct 2024 09:59:32 +0200 Subject: [PATCH] using better English --- src/common/QskBoxBorderMetrics.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common/QskBoxBorderMetrics.cpp b/src/common/QskBoxBorderMetrics.cpp index 1272f87e..fe010464 100644 --- a/src/common/QskBoxBorderMetrics.cpp +++ b/src/common/QskBoxBorderMetrics.cpp @@ -29,7 +29,7 @@ static void qskRegisterBoxBorderMetrics() Q_CONSTRUCTOR_FUNCTION( qskRegisterBoxBorderMetrics ) -static inline qreal qskAbsoluted( qreal length, qreal percentage ) +static inline qreal qskToAbsolute( qreal length, qreal percentage ) { // 100% means -> 0.5 of length percentage = qBound( 0.0, percentage, 100.0 ); @@ -69,10 +69,10 @@ QskBoxBorderMetrics QskBoxBorderMetrics::toAbsolute( const QSizeF& size ) const } else { - w.setLeft( qskAbsoluted( size.width(), w.left() ) ); - w.setTop( qskAbsoluted( size.height(), w.top() ) ); - w.setRight( qskAbsoluted( size.width(), w.right() ) ); - w.setBottom( qskAbsoluted( size.height(), w.bottom() ) ); + w.setLeft( qskToAbsolute( size.width(), w.left() ) ); + w.setTop( qskToAbsolute( size.height(), w.top() ) ); + w.setRight( qskToAbsolute( size.width(), w.right() ) ); + w.setBottom( qskToAbsolute( size.height(), w.bottom() ) ); } absoluted.m_sizeMode = Qt::AbsoluteSize;