diff --git a/src/categoryselectwidget.cpp b/src/categoryselectwidget.cpp --- a/src/categoryselectwidget.cpp +++ b/src/categoryselectwidget.cpp @@ -84,7 +84,7 @@ QHBoxLayout *hbox = new QHBoxLayout(q); hbox->setSpacing(0); - hbox->setMargin(0); + hbox->setContentsMargins(0, 0, 0, 0); checkCombo = new KPIM::KCheckComboBox; checkCombo->setMinimumWidth(150); diff --git a/src/configuration/kaddressbook_config_plugins.cpp b/src/configuration/kaddressbook_config_plugins.cpp --- a/src/configuration/kaddressbook_config_plugins.cpp +++ b/src/configuration/kaddressbook_config_plugins.cpp @@ -35,7 +35,7 @@ : KCModule(parent, args) { QHBoxLayout *lay = new QHBoxLayout(this); - lay->setMargin(0); + lay->setContentsMargins(0, 0, 0, 0); KAboutData *about = new KAboutData(QStringLiteral("kcmakrpluginsconfig"), i18n("Configure Plugins"), diff --git a/src/kaddressbookpart.cpp b/src/kaddressbookpart.cpp --- a/src/kaddressbookpart.cpp +++ b/src/kaddressbookpart.cpp @@ -54,7 +54,7 @@ initAction(); topLayout->addWidget(mMainWidget); - topLayout->setMargin(0); + topLayout->setContentsMargins(0, 0, 0, 0); setXMLFile(QStringLiteral("kaddressbookui.rc")); } diff --git a/src/mainwidget.cpp b/src/mainwidget.cpp --- a/src/mainwidget.cpp +++ b/src/mainwidget.cpp @@ -511,7 +511,7 @@ { // the horizontal main layout QHBoxLayout *layout = new QHBoxLayout(this); - layout->setMargin(0); + layout->setContentsMargins(0, 0, 0, 0); // Splitter 1 contains the two main parts of the GUI: // - collection and item view splitter 2 on the left (see below) @@ -552,7 +552,7 @@ mMainWidgetSplitter1->setChildrenCollapsible(false); QVBoxLayout *detailsPaneLayout = new QVBoxLayout(mDetailsPane); - detailsPaneLayout->setMargin(0); + detailsPaneLayout->setContentsMargins(0, 0, 0, 0); // the details view stack mDetailsViewStack = new QStackedWidget(); diff --git a/src/widgets/quicksearchwidget.cpp b/src/widgets/quicksearchwidget.cpp --- a/src/widgets/quicksearchwidget.cpp +++ b/src/widgets/quicksearchwidget.cpp @@ -32,7 +32,7 @@ : QWidget(parent) { QVBoxLayout *layout = new QVBoxLayout(this); - layout->setMargin(0); + layout->setContentsMargins(0, 0, 0, 0); mEdit = new QLineEdit(this); //If change shortcut changes it in mainwidget