- m_topLayout->setMargin(0);
- m_topLayout->setSpacing(KDialog::spacingHint());
- QHBoxLayout *controlsLayout = new QHBoxLayout(this);
- controlsLayout->setMargin(0);
+ m_topLayout->setContentsMargins(0, 0, 0, 0);
+
+ QHBoxLayout *controlsLayout = new QHBoxLayout();
+ controlsLayout->setContentsMargins(0, 0, 0, 0);