diff --git a/src/archivedialog.cpp b/src/archivedialog.cpp --- a/src/archivedialog.cpp +++ b/src/archivedialog.cpp @@ -73,7 +73,7 @@ mainLayout->addWidget(buttonBox); QVBoxLayout *topLayout = new QVBoxLayout(topFrame); - topLayout->setMargin(0); + topLayout->setContentsMargins(0, 0, 0, 0); QLabel *descLabel = new QLabel(topFrame); descLabel->setText( xi18nc("@info:whatsthis", @@ -100,7 +100,7 @@ &QButtonGroup::buttonClicked), this, &ArchiveDialog::slotActionChanged); QHBoxLayout *dateLayout = new QHBoxLayout(); - dateLayout->setMargin(0); + dateLayout->setContentsMargins(0, 0, 0, 0); mArchiveOnceRB = new QRadioButton(i18nc("@option:radio", "Archive now items older than:"), topFrame); @@ -132,7 +132,7 @@ // mExpireFolderCheckBox/mReadExpiryTimeNumInput in kmfolderdia.cpp) QWidget *autoArchiveHBox = new QWidget(topFrame); QHBoxLayout *autoArchiveHBoxHBoxLayout = new QHBoxLayout(autoArchiveHBox); - autoArchiveHBoxHBoxLayout->setMargin(0); + autoArchiveHBoxHBoxLayout->setContentsMargins(0, 0, 0, 0); topLayout->addWidget(autoArchiveHBox); mAutoArchiveRB = new QRadioButton(i18nc("@option:radio", "Automaticall&y archive items older than:"), @@ -181,7 +181,7 @@ mExpiryUnitsComboBox->setEnabled(false); QHBoxLayout *fileLayout = new QHBoxLayout(); - fileLayout->setMargin(0); + fileLayout->setContentsMargins(0, 0, 0, 0); QLabel *l = new QLabel(i18nc("@label", "Archive &file:"), topFrame); fileLayout->addWidget(l); mArchiveFile = new KUrlRequester(QUrl::fromLocalFile( diff --git a/src/next/incidenceviewer.cpp b/src/next/incidenceviewer.cpp --- a/src/next/incidenceviewer.cpp +++ b/src/next/incidenceviewer.cpp @@ -154,7 +154,7 @@ void IncidenceViewer::init() { QVBoxLayout *layout = new QVBoxLayout(this); - layout->setMargin(0); + layout->setContentsMargins(0, 0, 0, 0); d->mBrowser->setOpenLinks(true); d->mBrowser->setMinimumHeight(1); diff --git a/src/printing/calprinter.cpp b/src/printing/calprinter.cpp --- a/src/printing/calprinter.cpp +++ b/src/printing/calprinter.cpp @@ -193,7 +193,7 @@ setModal(true); QWidget *page = new QWidget(this); QVBoxLayout *pageVBoxLayout = new QVBoxLayout(page); - pageVBoxLayout->setMargin(0); + pageVBoxLayout->setContentsMargins(0, 0, 0, 0); mainLayout->addWidget(page); mainLayout->addWidget(buttonBox); @@ -207,7 +207,7 @@ QWidget *splitterRight = new QWidget(splitter); QGridLayout *splitterRightLayout = new QGridLayout(splitterRight); - splitterRightLayout->setMargin(0); + splitterRightLayout->setContentsMargins(0, 0, 0, 0); //splitterRightLayout->setMargin( marginHint() ); //splitterRightLayout->setSpacing( spacingHint() );