controlLayout = new QGridLayout( );
controlLayout->setSpacing( 0 );
-#if QT43
- controlLayout->setContentsMargins( 9, 6, 9, 6 );
-#else
- controlLayout->setMargin( 6 );
-#endif
+ controlLayout->setLayoutMargins( 7, 5, 7, 3, 6 );
if( !b_fsCreation )
setLayout( controlLayout );
QGridLayout *fsLayout = new QGridLayout( this );
controlLayout->setSpacing( 0 );
- #if QT43
- controlLayout->setContentsMargins( 5, 1, 5, 1 );
- #else
- controlLayout->setMargin( 5 );
- #endif
+ controlLayout->setLayoutMargins( 5, 1, 5, 1, 5 );
fsLayout->addWidget( slowerButton, 0, 0 );
slider->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum);
#endif
#if HAVE_TRANSPARENCY
- setWindowOpacity( 0.75 );
+ setWindowOpacity( DEFAULT_OPACITY );
#endif
}
else if ( type == FullscreenControlHide_Type )
{
FullscreenControllerWidget *p_fs = (FullscreenControllerWidget *) data;
- if ( p_fs->isFSCHidden() )
+ if ( p_fs->isFSCHidden() || p_fs->windowOpacity() < DEFAULT_OPACITY )
{
IMEvent *event = new IMEvent( FullscreenControlShow_Type, 0 );
QApplication::postEvent( p_fs, static_cast<QEvent *>(event) );