remove leftover change in segmented bar
This commit is contained in:
parent
38d2f5e4b6
commit
2129e235b7
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user