isNull added
This commit is contained in:
parent
f03007e7b8
commit
da21b95eb3
@ -35,6 +35,8 @@ class QSK_EXPORT QskShadowMetrics
|
||||
constexpr bool operator==( const QskShadowMetrics& ) const noexcept;
|
||||
constexpr bool operator!=( const QskShadowMetrics& ) const noexcept;
|
||||
|
||||
bool isNull() const noexcept;
|
||||
|
||||
void setSpreadRadius( qreal ) noexcept;
|
||||
constexpr qreal spreadRadius() const noexcept;
|
||||
|
||||
@ -158,6 +160,12 @@ inline constexpr QPointF QskShadowMetrics::offset() const noexcept
|
||||
return m_offset;
|
||||
}
|
||||
|
||||
inline bool QskShadowMetrics::isNull() const noexcept
|
||||
{
|
||||
return m_offset.isNull() &&
|
||||
( m_spreadRadius == 0.0 ) && ( m_blurRadius == 0.0 );
|
||||
}
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
|
||||
QSK_EXPORT QDebug operator<<( QDebug, const QskShadowMetrics& );
|
||||
|
Loading…
x
Reference in New Issue
Block a user