Commit d5855005 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port some QLayout::setMargins

parent 6a21b820
......@@ -87,7 +87,7 @@ Dtime::Dtime(QWidget * parent, bool haveTimeDated):
}
QVBoxLayout *v2 = new QVBoxLayout( timeBox );
v2->setMargin( 0 );
v2->setContentsMargins( 0, 0, 0, 0 );
kclock = new Kclock( timeBox );
kclock->setObjectName(QStringLiteral("Kclock"));
......
......@@ -94,7 +94,7 @@ KDEDConfig::KDEDConfig(QWidget* parent, const QVariantList &) :
NOT_RUNNING = i18n("Not running")+' ';
QVBoxLayout *lay = new QVBoxLayout( this );
lay->setMargin( 0 );
lay->setContentsMargins( 0, 0, 0, 0 );
QGroupBox *gb = new QGroupBox( i18n("Load-on-Demand Services"), this );
gb->setWhatsThis( i18n("This is a list of available KDE services which will "
......
......@@ -133,7 +133,7 @@ CCharTip::CCharTip(CFontPreview *parent)
itsTimer = new QTimer(this);
QBoxLayout* layout = new QBoxLayout(QBoxLayout::LeftToRight, this);
layout->setMargin(8);
layout->setContentsMargins(8, 8, 8, 8);
layout->setSpacing(0);
layout->addWidget(itsPixmapLabel);
layout->addWidget(itsLabel);
......
......@@ -38,7 +38,7 @@ StyleConfigDialog::StyleConfigDialog(QWidget* parent, const QString &styleName)
mainLayout->addWidget(mainWidget);
mMainLayout = new QHBoxLayout(mainWidget);
mMainLayout->setMargin(0);
mMainLayout->setContentsMargins(0, 0, 0, 0);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
......
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