avoid enum bitfields

This commit is contained in:
Uwe Rathmann 2024-11-14 07:43:34 +01:00
parent 7f389ef6cc
commit baaccb2f41
2 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ class QskPageIndicator::PrivateData
int pressedIndex = -1;
int count;
Qt::Orientation orientation : 2;
Qt::Orientation orientation;
};
QskPageIndicator::QskPageIndicator( int count, QQuickItem* parent )

View File

@ -32,7 +32,7 @@ class QskSlider::PrivateData
QPointF pressedPos;
qreal pressedValue;
bool tracking : 1;
Qt::Orientation orientation : 2;
uint orientation : 2;
};
QskSlider::QskSlider( QQuickItem* parent )
@ -77,13 +77,13 @@ void QskSlider::setOrientation( Qt::Orientation orientation )
resetImplicitSize();
update();
Q_EMIT orientationChanged( m_data->orientation );
Q_EMIT orientationChanged( this->orientation() );
}
}
Qt::Orientation QskSlider::orientation() const
{
return m_data->orientation;
return static_cast< Qt::Orientation >( m_data->orientation );
}
QskAspect::Variation QskSlider::effectiveVariation() const