Commit a629ccd2 authored by Jonathan Marten's avatar Jonathan Marten
Browse files

Fix compile with Qt 5.13 and QT_DISABLE_DEPRECATED_BEFORE=0x060000

Differential Revision: https://phabricator.kde.org/D19361
parent 836a35ce
......@@ -112,7 +112,7 @@ void KAddressBookContactSelectionWidget::setAddGroupContact(bool addGroupContact
void KAddressBookContactSelectionWidget::initGui()
{
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
mMessageLabel = new QLabel;
layout->addWidget(mMessageLabel);
......@@ -173,7 +173,7 @@ void KAddressBookContactSelectionWidget::initGui()
boxLayout->addWidget(mAddressBookContactsButton, 2, 0, Qt::AlignTop);
QVBoxLayout *addressBookLayout = new QVBoxLayout;
addressBookLayout->setMargin(0);
addressBookLayout->setContentsMargins(0, 0, 0, 0);
addressBookLayout->addWidget(mAddressBookSelection);
addressBookLayout->addWidget(mAddressBookSelectionRecursive);
......
......@@ -32,7 +32,7 @@ KAddressBookExportSelectionWidget::KAddressBookExportSelectionWidget(QWidget *pa
: QWidget(parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setMargin(0);
mainLayout->setContentsMargins(0, 0, 0, 0);
QGroupBox *gbox = new QGroupBox(
i18nc("@title:group", "Fields to be exported"), this);
mainLayout->addWidget(gbox);
......
......@@ -48,7 +48,7 @@ SendLaterDialog::SendLaterDialog(SendLater::SendLaterInfo *info, QWidget *parent
QWidget *w = new QWidget(this);
QVBoxLayout *lay = new QVBoxLayout;
lay->setMargin(0);
lay->setContentsMargins(0, 0, 0, 0);
w->setLayout(lay);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
......
......@@ -32,7 +32,7 @@ SendLaterTimeDateWidget::SendLaterTimeDateWidget(QWidget *parent)
: QWidget(parent)
{
QHBoxLayout *lay = new QHBoxLayout;
lay->setMargin(0);
lay->setContentsMargins(0, 0, 0, 0);
QDateTime t = QDateTime::currentDateTime();
t = t.addSecs(60 * 60);
......
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