remove leftover change in segmented bar

This commit is contained in:
Peter Hartmann 2022-07-05 09:52:03 +02:00
parent 38d2f5e4b6
commit 2129e235b7

View File

@ -96,10 +96,6 @@ QskSegmentedBar::QskSegmentedBar( Qt::Orientation orientation, QQuickItem* paren
: Inherited( parent )
, m_data( new PrivateData( orientation ) )
{
auto direction = ( orientation == Qt::Horizontal )
? Qsk::LeftToRight : Qsk::TopToBottom;
setFlagHint( Panel | QskAspect::Direction, direction );
if( orientation == Qt::Horizontal )
initSizePolicy( QskSizePolicy::MinimumExpanding, QskSizePolicy::Fixed );
else
@ -124,10 +120,6 @@ void QskSegmentedBar::setOrientation( Qt::Orientation orientation )
setSizePolicy( sizePolicy( Qt::Vertical ), sizePolicy( Qt::Horizontal ) );
m_data->orientation = orientation;
auto direction = ( orientation == Qt::Horizontal )
? Qsk::LeftToRight : Qsk::TopToBottom;
setFlagHint( Panel | QskAspect::Direction, direction );
resetImplicitSize();
update();
}