]> git.sesse.net Git - vlc/commitdiff
Qt: remove unnecessary macro
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 1 Dec 2009 01:04:59 +0000 (02:04 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 4 Dec 2009 06:21:40 +0000 (07:21 +0100)
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller_widget.cpp
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/dialogs/extended.cpp
modules/gui/qt4/dialogs/preferences.cpp
modules/gui/qt4/qt4.hpp

index 0f688bef6bc8963dba44b05bb59ada3e1d1e767f..ef23e8f1cd9b08b3bdd8deb74dc957cd86608fb6 100644 (file)
@@ -549,7 +549,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
     b_advancedVisible = b_advControls;
 
     QVBoxLayout *controlLayout = new QVBoxLayout( this );
-    controlLayout->setLayoutMargins( 6, 4, 6, 2, 5 );
+    controlLayout->setContentsMargins( 5, 3, 5, 2 );
     controlLayout->setSpacing( 0 );
     QHBoxLayout *controlLayout1 = new QHBoxLayout;
     controlLayout1->setSpacing( 0 );
@@ -641,7 +641,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, QWi
     setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum );
 
     QVBoxLayout *controlLayout2 = new QVBoxLayout( this );
-    controlLayout2->setLayoutMargins( 4, 6, 4, 2, 5 );
+    controlLayout2->setContentsMargins( 4, 6, 4, 2 );
 
     /* First line */
     InputControlsWidget *inputC = new InputControlsWidget( p_intf, this );
index aa377bacdd6f19baefab36ac29b66644092b82f0..93127836f53eff560044eff7e5445b46bb41dbb9 100644 (file)
@@ -71,7 +71,7 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
 
         volumeControlWidget = new QFrame;
         subLayout = new QVBoxLayout( volumeControlWidget );
-        subLayout->setLayoutMargins( 4, 4, 4, 4, 4 );
+        subLayout->setContentsMargins( 4, 4, 4, 4 );
         volumeMenu = new QMenu( this );
 
         QWidgetAction *widgetAction = new QWidgetAction( volumeControlWidget );
index 2909f41c687257c73bd81b959b650bfbf96c47fa..07520e514b6182ea1b3450ee896bd8cd49157802 100644 (file)
@@ -491,7 +491,7 @@ SpeedControlWidget::SpeedControlWidget( intf_thread_t *_p_i, QWidget *_parent )
     CONNECT( normalSpeedButton, clicked(), this, resetRate() );
 
     QVBoxLayout *speedControlLayout = new QVBoxLayout( this );
-    speedControlLayout->setLayoutMargins( 4, 4, 4, 4, 4 );
+    speedControlLayout->setContentsMargins( 4, 4, 4, 4 );
     speedControlLayout->setSpacing( 4 );
     speedControlLayout->addWidget( speedSlider );
     speedControlLayout->addWidget( normalSpeedButton );
index f4fe68b467457bba95625765ef4e6a30b908d142..c44bcbd213744c2a6d76aecaf7cd367a0f37d645 100644 (file)
@@ -43,7 +43,7 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
     setWindowRole( "vlc-extended" );
 
     QGridLayout *layout = new QGridLayout( this );
-    layout->setLayoutMargins( 0, 2, 0, 1, 1 );
+    layout->setContentsMargins( 0, 2, 0, 1 );
     layout->setSpacing( 3 );
 
     mainTabW = new QTabWidget( this );
index 150dea80ff29b71cbab2733c71366343b4f6e2d6..39373720a76279e258531422a362cc479cfd7bee 100644 (file)
@@ -107,7 +107,7 @@ PrefsDialog::PrefsDialog( QWidget *parent, intf_thread_t *_p_intf )
 
     /* Margins */
     tree_panel_l->setMargin( 1 );
-    main_panel_l->setLayoutMargins( 6, 0, 0, 3, 3 );
+    main_panel_l->setContentsMargins( 6, 0, 0, 3 );
 
     b_small = (p_intf->p_sys->i_screenHeight < 750);
     if( b_small ) msg_Dbg( p_intf, "Small");
index 1cd012ce67fcc54fcaabd3d3659bc44fe67e986b..470a4d68c2ed725139a5e2889fb11f9f379f64f8 100644 (file)
@@ -115,8 +115,6 @@ struct intf_sys_t
 #define TOGGLEV( x ) { if( x->isVisible() ) x->hide();          \
             else  x->show(); }
 
-#define setLayoutMargins( a, b, c, d, e) setContentsMargins( a, b, c, d )
-
 #define getSettings() p_intf->p_sys->mainSettings
 
 static inline QString QVLCUserDir( vlc_userdir_t type )