Commit 3055fe37 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port QLayout::setMargins to QLayout::setContentsMargins

parent ec2532c5
......@@ -51,7 +51,7 @@ HostConnector::HostConnector(QWidget *parent, const QString &name )
setLayout(vlayout);
QGridLayout *layout = new QGridLayout( page );
layout->setMargin( 0 );
layout->setContentsMargins( 0, 0, 0, 0 );
layout->setColumnStretch( 1, 1 );
QLabel *label = new QLabel( i18n( "Host:" ), page );
......
......@@ -50,7 +50,7 @@ DancingBarsSettings::DancingBarsSettings(QWidget* parent, const QString &name )
QFrame *page = new QFrame( this );
addPage( page, i18n( "Range" ) );
QGridLayout *pageLayout = new QGridLayout( page );
pageLayout->setMargin( 0 );
pageLayout->setContentsMargins( 0, 0, 0, 0 );
QGroupBox *groupBox = new QGroupBox( i18n( "Title" ), page );
QGridLayout *boxLayout = new QGridLayout;
......@@ -99,7 +99,7 @@ DancingBarsSettings::DancingBarsSettings(QWidget* parent, const QString &name )
page = new QFrame( this );
addPage( page, i18n( "Alarms" ) );
pageLayout = new QGridLayout( page );
pageLayout->setMargin( 0 );
pageLayout->setContentsMargins( 0, 0, 0, 0 );
groupBox = new QGroupBox( i18n( "Alarm for Minimum Value" ), page );
boxLayout = new QGridLayout;
......@@ -152,7 +152,7 @@ DancingBarsSettings::DancingBarsSettings(QWidget* parent, const QString &name )
page = new QFrame( this );
addPage( page, i18nc( "@title:tab Appearance of the bar graph", "Look" ) );
pageLayout = new QGridLayout( page );
pageLayout->setMargin( 0 );
pageLayout->setContentsMargins( 0, 0, 0, 0 );
label = new QLabel( i18n( "Normal bar color:" ), page );
pageLayout->addWidget( label, 0, 0 );
......@@ -190,7 +190,7 @@ DancingBarsSettings::DancingBarsSettings(QWidget* parent, const QString &name )
page = new QFrame( this );
addPage( page, i18n( "Sensors" ) );
pageLayout = new QGridLayout( page );
pageLayout->setMargin( 0 );
pageLayout->setContentsMargins( 0, 0, 0, 0 );
pageLayout->setRowStretch( 2, 1 );
mView = new QTreeView( page );
......
......@@ -62,7 +62,7 @@ FancyPlotterSettings::FancyPlotterSettings( QWidget* parent, bool locked )
page = new QFrame();
addPage( page, i18n( "General" ) );
pageLayout = new QGridLayout( page );
pageLayout->setMargin( 0 );
pageLayout->setContentsMargins( 0, 0, 0, 0 );
label = new QLabel( i18n( "Title:" ), page );
pageLayout->addWidget( label, 0, 0 );
......@@ -82,7 +82,7 @@ FancyPlotterSettings::FancyPlotterSettings( QWidget* parent, bool locked )
page = new QFrame();
addPage( page, i18n( "Scales" ) );
pageLayout = new QGridLayout( page );
pageLayout->setMargin( 0 );
pageLayout->setContentsMargins( 0, 0, 0, 0 );
groupBox = new QGroupBox( i18n( "Vertical scale" ), page );
boxLayout = new QGridLayout;
......@@ -135,7 +135,7 @@ FancyPlotterSettings::FancyPlotterSettings( QWidget* parent, bool locked )
page = new QFrame( );
addPage( page, i18n( "Grid" ) );
pageLayout = new QGridLayout( page );
pageLayout->setMargin( 0 );
pageLayout->setContentsMargins( 0, 0, 0, 0 );
groupBox = new QGroupBox( i18n( "Lines" ), page );
boxLayout = new QGridLayout;
......@@ -193,7 +193,7 @@ FancyPlotterSettings::FancyPlotterSettings( QWidget* parent, bool locked )
page = new QFrame( );
addPage( page, i18n( "Sensors" ) );
pageLayout = new QGridLayout( page );
pageLayout->setMargin( 0 );
pageLayout->setContentsMargins( 0, 0, 0, 0 );
pageLayout->setRowStretch( 2, 1 );
pageLayout->setRowStretch( 5, 1 );
......
......@@ -55,7 +55,7 @@ WorkSheetSettings::WorkSheetSettings( QWidget* parent, bool locked )
mainLayout->addWidget(buttonBox);
QVBoxLayout *topLayout = new QVBoxLayout( page );
topLayout->setMargin( 0 );
topLayout->setContentsMargins( 0, 0, 0, 0 );
//PORT QT5 topLayout->setSpacing( spacingHint() );
QGroupBox *group = new QGroupBox( i18n( "Title" ), page );
......
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