don't use enum bitfields for unspecied enums

This commit is contained in:
Uwe Rathmann 2024-12-09 15:46:43 +01:00
parent 36f502b57a
commit 4220edc7ca
2 changed files with 2 additions and 2 deletions

View File

@ -338,7 +338,7 @@ void QskStackBoxAnimator2::setOrientation( Qt::Orientation orientation )
Qt::Orientation QskStackBoxAnimator2::orientation() const Qt::Orientation QskStackBoxAnimator2::orientation() const
{ {
return m_orientation; return static_cast< Qt::Orientation >( m_orientation );
} }
void QskStackBoxAnimator2::setInverted( bool on ) void QskStackBoxAnimator2::setInverted( bool on )

View File

@ -96,7 +96,7 @@ class QSK_EXPORT QskStackBoxAnimator2 : public QskStackBoxAnimator
void done() override; void done() override;
private: private:
Qt::Orientation m_orientation : 2; unsigned int m_orientation : 2;
bool m_inverted : 1; bool m_inverted : 1;
}; };