QFrame *discFrame = new QFrame( this );
QHBoxLayout *discLayout = new QHBoxLayout( discFrame );
- discLayout->setSpacing( 0 ); discLayout->setMargin( 0 );
+ discLayout->setSpacing( 0 ); discLayout->setContentsMargins( 0, 0, 0, 0 );
QFrame *chapFrame = new QFrame( discFrame );
QHBoxLayout *chapLayout = new QHBoxLayout( chapFrame );
- chapLayout->setSpacing( 0 ); chapLayout->setMargin( 0 );
+ chapLayout->setSpacing( 0 ); chapLayout->setContentsMargins( 0, 0, 0, 0 );
QToolButton *prevSectionButton = new QToolButton( chapFrame );
setupButton( prevSectionButton );
QFrame *menuFrame = new QFrame( discFrame );
QHBoxLayout *menuLayout = new QHBoxLayout( menuFrame );
- menuLayout->setSpacing( 0 ); menuLayout->setMargin( 0 );
+ menuLayout->setSpacing( 0 ); menuLayout->setContentsMargins( 0, 0, 0, 0 );
QToolButton *menuButton = new QToolButton( menuFrame );
setupButton( menuButton );
**/
QFrame *telexFrame = new QFrame( this );
QHBoxLayout *telexLayout = new QHBoxLayout( telexFrame );
- telexLayout->setSpacing( 0 ); telexLayout->setMargin( 0 );
+ telexLayout->setSpacing( 0 ); telexLayout->setContentsMargins( 0, 0, 0, 0 );
CONNECT( THEMIM->getIM(), teletextPossible( bool ),
telexFrame, setVisible( bool ) );
controlLayout->setContentsMargins( 3, 1, 0, 1 );
controlLayout->setSpacing( 0 );
QHBoxLayout *controlLayout1 = new QHBoxLayout;
- controlLayout1->setSpacing( 0 ); controlLayout1->setMargin( 0 );
+ controlLayout1->setSpacing( 0 ); controlLayout1->setContentsMargins( 0, 0, 0, 0 );
QString line1 = getSettings()->value( "MainWindow/MainToolbar1", MAIN_TB1_DEFAULT )
.toString();
parseAndCreate( line1, controlLayout1 );
QHBoxLayout *controlLayout2 = new QHBoxLayout;
- controlLayout2->setSpacing( 0 ); controlLayout2->setMargin( 0 );
+ controlLayout2->setSpacing( 0 ); controlLayout2->setContentsMargins( 0, 0, 0, 0 );
QString line2 = getSettings()->value( "MainWindow/MainToolbar2", MAIN_TB2_DEFAULT )
.toString();
parseAndCreate( line2, controlLayout2 );
{
RTL_UNAFFECTED_WIDGET
controlLayout = new QHBoxLayout( this );
- controlLayout->setMargin( 0 );
+ controlLayout->setContentsMargins( 0, 0, 0, 0 );
controlLayout->setSpacing( 0 );
#ifdef DEBUG_LAYOUT
setStyleSheet( "background: orange ");
{
RTL_UNAFFECTED_WIDGET
controlLayout = new QHBoxLayout( this );
- controlLayout->setMargin( 0 );
+ controlLayout->setContentsMargins( 0, 0, 0, 0 );
controlLayout->setSpacing( 0 );
#ifdef DEBUG_LAYOUT
setStyleSheet( "background: green ");
{
/* We need a layout for this widget */
QHBoxLayout *layout = new QHBoxLayout( this );
- layout->setSpacing( 0 ); layout->setMargin( 0 );
+ layout->setSpacing( 0 ); layout->setContentsMargins( 0, 0, 0, 0 );
/* We need a Label for the pix */
volMuteLabel = new QLabel;
setContentsMargins( 0, 3, 0, 3 );
QGridLayout *layout = new QGridLayout( this );
- layout->setMargin( 0 ); layout->setSpacing( 0 );
+ layout->setContentsMargins( 0, 0, 0, 0 ); layout->setSpacing( 0 );
/*******************
* Left *
p_selector( _p_selector )
{
viewStack = new QStackedLayout( this );
- viewStack->setSpacing( 0 ); viewStack->setMargin( 0 );
+ viewStack->setSpacing( 0 ); viewStack->setContentsMargins( 0, 0, 0, 0 );
setMinimumWidth( 300 );
iconView = NULL;
PicFlowView::PicFlowView( QAbstractItemModel *p_model, QWidget *parent ) : QAbstractItemView( parent )
{
QHBoxLayout *layout = new QHBoxLayout( this );
- layout->setMargin( 0 );
+ layout->setContentsMargins( 0, 0, 0, 0 );
picFlow = new PictureFlow( this, p_model );
picFlow->setContextMenuPolicy( Qt::CustomContextMenu );
connect( picFlow, SIGNAL(customContextMenuRequested( const QPoint & )),
dialog->setWindowTitle (title);
dialog->setWindowRole ("vlc-login");
dialog->setModal(true);
- layout->setMargin (2);
+ layout->setContentsMargins( 2, 2, 2, 2 );
/* Username and password fields */
QWidget *panel = new QWidget (dialog);
setLayout( main_layout );
/* Margins */
- simple_tree_panel->layout()->setMargin( 1 );
+ simple_tree_panel->layout()->setContentsMargins( 1, 1, 1, 1 );
simple_panels_stack->layout()->setContentsMargins( 6, 0, 0, 3 );
for( int i = 0; i < SPrefsMax ; i++ ) simple_panels[i] = NULL;
QWidget *discFrame = new QWidget( this );
//discFrame->setLineWidth( 1 );
QHBoxLayout *discLayout = new QHBoxLayout( discFrame );
- discLayout->setSpacing( 0 ); discLayout->setMargin( 0 );
+ discLayout->setSpacing( 0 ); discLayout->setContentsMargins( 0, 0, 0, 0 );
QToolButton *prevSectionButton = new QToolButton( discFrame );
prevSectionButton->setIcon( QIcon( ":/toolbar/dvd_prev.svg" ) );
{
QWidget *telexFrame = new QWidget( this );
QHBoxLayout *telexLayout = new QHBoxLayout( telexFrame );
- telexLayout->setSpacing( 0 ); telexLayout->setMargin( 0 );
+ telexLayout->setSpacing( 0 ); telexLayout->setContentsMargins( 0, 0, 0, 0 );
QToolButton *telexOn = new QToolButton( telexFrame );
telexOn->setIcon( QIcon( ":/toolbar/tv.svg" ) );
setAcceptDrops( true );
controlLayout = new QHBoxLayout( this );
controlLayout->setSpacing( 5 );
- controlLayout->setMargin( 0 );
+ controlLayout->setContentsMargins( 0, 0, 0, 0 );
setFrameShape( QFrame::StyledPanel );
setFrameShadow( QFrame::Raised );
setMinimumHeight( 20 );
resumePanel = new QWidget( w );
resumePanel->hide();
QHBoxLayout *resumePanelLayout = new QHBoxLayout( resumePanel );
- resumePanelLayout->setSpacing( 0 ); resumePanelLayout->setMargin( 0 );
+ resumePanelLayout->setSpacing( 0 ); resumePanelLayout->setContentsMargins( 0, 0, 0, 0 );
QLabel *continuePixmapLabel = new QLabel();
continuePixmapLabel->setPixmap( ImageHelper::loadSvgToPixmap( ":/menu/help.svg" , fontMetrics().height(), fontMetrics().height()) );
setCentralWidget( main );
mainLayout = new QVBoxLayout( main );
main->setContentsMargins( 0, 0, 0, 0 );
- mainLayout->setSpacing( 0 ); mainLayout->setMargin( 0 );
+ mainLayout->setSpacing( 0 ); mainLayout->setContentsMargins( 0, 0, 0, 0 );
createResumePanel( main );
/* */