Commit b9994068 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: remove unnecessary macro

parent cc7478f4
...@@ -549,7 +549,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, ...@@ -549,7 +549,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
b_advancedVisible = b_advControls; b_advancedVisible = b_advControls;
QVBoxLayout *controlLayout = new QVBoxLayout( this ); QVBoxLayout *controlLayout = new QVBoxLayout( this );
controlLayout->setLayoutMargins( 6, 4, 6, 2, 5 ); controlLayout->setContentsMargins( 5, 3, 5, 2 );
controlLayout->setSpacing( 0 ); controlLayout->setSpacing( 0 );
QHBoxLayout *controlLayout1 = new QHBoxLayout; QHBoxLayout *controlLayout1 = new QHBoxLayout;
controlLayout1->setSpacing( 0 ); controlLayout1->setSpacing( 0 );
...@@ -641,7 +641,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, QWi ...@@ -641,7 +641,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, QWi
setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum ); setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum );
QVBoxLayout *controlLayout2 = new QVBoxLayout( this ); QVBoxLayout *controlLayout2 = new QVBoxLayout( this );
controlLayout2->setLayoutMargins( 4, 6, 4, 2, 5 ); controlLayout2->setContentsMargins( 4, 6, 4, 2 );
/* First line */ /* First line */
InputControlsWidget *inputC = new InputControlsWidget( p_intf, this ); InputControlsWidget *inputC = new InputControlsWidget( p_intf, this );
......
...@@ -71,7 +71,7 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf, ...@@ -71,7 +71,7 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
volumeControlWidget = new QFrame; volumeControlWidget = new QFrame;
subLayout = new QVBoxLayout( volumeControlWidget ); subLayout = new QVBoxLayout( volumeControlWidget );
subLayout->setLayoutMargins( 4, 4, 4, 4, 4 ); subLayout->setContentsMargins( 4, 4, 4, 4 );
volumeMenu = new QMenu( this ); volumeMenu = new QMenu( this );
QWidgetAction *widgetAction = new QWidgetAction( volumeControlWidget ); QWidgetAction *widgetAction = new QWidgetAction( volumeControlWidget );
......
...@@ -491,7 +491,7 @@ SpeedControlWidget::SpeedControlWidget( intf_thread_t *_p_i, QWidget *_parent ) ...@@ -491,7 +491,7 @@ SpeedControlWidget::SpeedControlWidget( intf_thread_t *_p_i, QWidget *_parent )
CONNECT( normalSpeedButton, clicked(), this, resetRate() ); CONNECT( normalSpeedButton, clicked(), this, resetRate() );
QVBoxLayout *speedControlLayout = new QVBoxLayout( this ); QVBoxLayout *speedControlLayout = new QVBoxLayout( this );
speedControlLayout->setLayoutMargins( 4, 4, 4, 4, 4 ); speedControlLayout->setContentsMargins( 4, 4, 4, 4 );
speedControlLayout->setSpacing( 4 ); speedControlLayout->setSpacing( 4 );
speedControlLayout->addWidget( speedSlider ); speedControlLayout->addWidget( speedSlider );
speedControlLayout->addWidget( normalSpeedButton ); speedControlLayout->addWidget( normalSpeedButton );
......
...@@ -43,7 +43,7 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf ) ...@@ -43,7 +43,7 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
setWindowRole( "vlc-extended" ); setWindowRole( "vlc-extended" );
QGridLayout *layout = new QGridLayout( this ); QGridLayout *layout = new QGridLayout( this );
layout->setLayoutMargins( 0, 2, 0, 1, 1 ); layout->setContentsMargins( 0, 2, 0, 1 );
layout->setSpacing( 3 ); layout->setSpacing( 3 );
mainTabW = new QTabWidget( this ); mainTabW = new QTabWidget( this );
......
...@@ -107,7 +107,7 @@ PrefsDialog::PrefsDialog( QWidget *parent, intf_thread_t *_p_intf ) ...@@ -107,7 +107,7 @@ PrefsDialog::PrefsDialog( QWidget *parent, intf_thread_t *_p_intf )
/* Margins */ /* Margins */
tree_panel_l->setMargin( 1 ); 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); b_small = (p_intf->p_sys->i_screenHeight < 750);
if( b_small ) msg_Dbg( p_intf, "Small"); if( b_small ) msg_Dbg( p_intf, "Small");
......
...@@ -115,8 +115,6 @@ struct intf_sys_t ...@@ -115,8 +115,6 @@ struct intf_sys_t
#define TOGGLEV( x ) { if( x->isVisible() ) x->hide(); \ #define TOGGLEV( x ) { if( x->isVisible() ) x->hide(); \
else x->show(); } else x->show(); }
#define setLayoutMargins( a, b, c, d, e) setContentsMargins( a, b, c, d )
#define getSettings() p_intf->p_sys->mainSettings #define getSettings() p_intf->p_sys->mainSettings
static inline QString QVLCUserDir( vlc_userdir_t type ) static inline QString QVLCUserDir( vlc_userdir_t type )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment