avoid enum bitfields
This commit is contained in:
parent
7f389ef6cc
commit
baaccb2f41
@ -59,7 +59,7 @@ class QskPageIndicator::PrivateData
|
|||||||
int pressedIndex = -1;
|
int pressedIndex = -1;
|
||||||
|
|
||||||
int count;
|
int count;
|
||||||
Qt::Orientation orientation : 2;
|
Qt::Orientation orientation;
|
||||||
};
|
};
|
||||||
|
|
||||||
QskPageIndicator::QskPageIndicator( int count, QQuickItem* parent )
|
QskPageIndicator::QskPageIndicator( int count, QQuickItem* parent )
|
||||||
|
@ -32,7 +32,7 @@ class QskSlider::PrivateData
|
|||||||
QPointF pressedPos;
|
QPointF pressedPos;
|
||||||
qreal pressedValue;
|
qreal pressedValue;
|
||||||
bool tracking : 1;
|
bool tracking : 1;
|
||||||
Qt::Orientation orientation : 2;
|
uint orientation : 2;
|
||||||
};
|
};
|
||||||
|
|
||||||
QskSlider::QskSlider( QQuickItem* parent )
|
QskSlider::QskSlider( QQuickItem* parent )
|
||||||
@ -77,13 +77,13 @@ void QskSlider::setOrientation( Qt::Orientation orientation )
|
|||||||
resetImplicitSize();
|
resetImplicitSize();
|
||||||
update();
|
update();
|
||||||
|
|
||||||
Q_EMIT orientationChanged( m_data->orientation );
|
Q_EMIT orientationChanged( this->orientation() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Qt::Orientation QskSlider::orientation() const
|
Qt::Orientation QskSlider::orientation() const
|
||||||
{
|
{
|
||||||
return m_data->orientation;
|
return static_cast< Qt::Orientation >( m_data->orientation );
|
||||||
}
|
}
|
||||||
|
|
||||||
QskAspect::Variation QskSlider::effectiveVariation() const
|
QskAspect::Variation QskSlider::effectiveVariation() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user