And fix sizing of FSC accordingly.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum );
QGridLayout *fsLayout = new QGridLayout( this );
setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum );
QGridLayout *fsLayout = new QGridLayout( this );
- fsLayout->setLayoutMargins( 5, 1, 5, 1, 5 );
+ fsLayout->setLayoutMargins( 5, 2, 5, 2, 5 );
/* First line */
slider->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum);
/* First line */
slider->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum);
+ slider->setMinimumWidth( 220 );
fsLayout->addWidget( slowerButton, 0, 0 );
fsLayout->addWidget( slowerButton, 0, 0 );
- fsLayout->addWidget( slider, 0, 1, 1, 8 );
- fsLayout->addWidget( fasterButton, 0, 9 );
+ fsLayout->addWidget( slider, 0, 1, 1, 9 );
+ fsLayout->addWidget( fasterButton, 0, 10 );
fsLayout->addWidget( playButton, 1, 0, 1, 2 );
fsLayout->addLayout( controlButLayout, 1, 2 );
fsLayout->addWidget( playButton, 1, 0, 1, 2 );
fsLayout->addLayout( controlButLayout, 1, 2 );
fsLayout->addWidget( fullscreenButton, 1, 5 );
fsLayout->addWidget( advControls, 1, 6, Qt::AlignVCenter );
fsLayout->addWidget( fullscreenButton, 1, 5 );
fsLayout->addWidget( advControls, 1, 6, Qt::AlignVCenter );
- fsLayout->addWidget( volMuteLabel, 1, 7 );
- fsLayout->addWidget( volumeSlider, 1, 8, 1, 2 );
+ fsLayout->setColumnStretch( 7, 10 );
+ fsLayout->addWidget( volMuteLabel, 1, 8 );
+ fsLayout->addWidget( volumeSlider, 1, 9, 1, 2 );
/* hiding timer */
p_hideTimer = new QTimer( this );
/* hiding timer */
p_hideTimer = new QTimer( this );
#define TOGGLEV( x ) { if( x->isVisible() ) x->hide(); \
else x->show(); }
#define TOGGLEV( x ) { if( x->isVisible() ) x->hide(); \
else x->show(); }
#define setLayoutMargins( a, b, c, d, e) setContentsMargins( a, b, c, d )
#else
#define setLayoutMargins( a, b, c, d, e) setMargin( e )
#define setLayoutMargins( a, b, c, d, e) setContentsMargins( a, b, c, d )
#else
#define setLayoutMargins( a, b, c, d, e) setMargin( e )