]> git.sesse.net Git - vlc/commitdiff
Fixes for fullscreen controller
authorLukas Durfina <lukas.durfina@gmail.com>
Tue, 10 Jun 2008 10:02:39 +0000 (12:02 +0200)
committerRafaël Carré <funman@videolan.org>
Tue, 10 Jun 2008 10:18:38 +0000 (12:18 +0200)
Signed-off-by: Rafaël Carré <funman@videolan.org>
modules/gui/qt4/components/interface_widgets.cpp

index 6a7a7eb582caed115937b45d748d4dd91e224453..4413a6e3f560452aef40cd2b74e0852555acda2a 100644 (file)
@@ -826,7 +826,11 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i,
 
     QGridLayout *fsLayout = new QGridLayout( this );
     controlLayout->setSpacing( 0 );
+    #if QT43
     controlLayout->setContentsMargins( 5, 1, 5, 1 );
+    #else
+    controlLayout->setMargin( 5 );
+    #endif
 
     fsLayout->addWidget( slowerButton, 0, 0 );
     slider->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum);
@@ -842,7 +846,9 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i,
 
     fsLayout->addWidget( discFrame, 1, 4 );
 
+    #ifdef ZVBI_COMPILED
     fsLayout->addWidget( telexFrame, 1, 5 );
+    #endif
 
     fsLayout->addWidget( advControls, 1, 6, Qt::AlignVCenter );
 
@@ -909,7 +915,8 @@ void FullscreenControllerWidget::slowHideFSC()
 
         p_slowHideTimer->stop();
         /* the last part of time divided to 100 pieces */
-        p_slowHideTimer->start( i_hideTimeout / 2 / ( windowOpacity() * 100 ) );
+        p_slowHideTimer->start(
+            (int) ( i_hideTimeout / 2 / ( windowOpacity() * 100 ) ) );
     }
     else
     {