Skip to content

Commit

Permalink
layout code fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
uwerat committed Jul 22, 2019
1 parent c37a99e commit c20198e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/automotive/SoundControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ class SectionTitleBar final : public QskLinearBox

setStretchFactor( 0, 1 );
setStretchFactor( 2, 5 );

setSizePolicy( Qt::Vertical, QskSizePolicy::Fixed );
}
};

Expand Down Expand Up @@ -362,9 +364,9 @@ class BalanceFadeControlBox final : public QskGridBox
m_carControl = new StackedControl();

addItem( buttons[ Qsk::RightToLeft ], 1, 0 );
addItem( buttons[ Qsk::BottomToTop ], 0, 0, 1, 3 );
addItem( buttons[ Qsk::BottomToTop ], 0, 1 );
addItem( buttons[ Qsk::LeftToRight ], 1, 2 );
addItem( buttons[ Qsk::TopToBottom ], 2, 0, 1, 3 );
addItem( buttons[ Qsk::TopToBottom ], 2, 1 );

addItem( m_carControl, 1, 1 );

Expand Down Expand Up @@ -397,7 +399,7 @@ SoundControl::SoundControl( QQuickItem* parent )
layout->setSpacing( Qt::Vertical, 10 );
layout->setSpacing( Qt::Horizontal, 60 );
layout->setColumnStretchFactor( 0, 1 );
layout->setColumnStretchFactor( 1, 2 );
layout->setColumnStretchFactor( 1, 3 );

layout->addItem( new SectionTitleBar( "Tone" ), 0, 0 );
layout->addItem( new ToneControlBox(), 1, 0 );
Expand Down

0 comments on commit c20198e

Please sign in to comment.