summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-01 12:02:28 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-01 12:02:28 (GMT)
commitd7ce6efa81f74e7d6f5e749807676c01c7832e01 (patch)
treecd28c81b60457a82b0f24074a4fcc4c8225f2b70
parentff72228b64fef1417f373914b1b350987ec33122 (diff)
Add parent directly
-rw-r--r--src/addressline/blacklistbaloocompletion/blacklistbalooemailcompletionwidget.cpp3
-rw-r--r--src/addressline/completionconfiguredialog/completionconfiguredialog.cpp3
-rw-r--r--src/ldap/kcmldap.cpp3
-rw-r--r--src/ldap/ldapsearchdialog.cpp3
4 files changed, 4 insertions, 8 deletions
diff --git a/src/addressline/blacklistbaloocompletion/blacklistbalooemailcompletionwidget.cpp b/src/addressline/blacklistbaloocompletion/blacklistbalooemailcompletionwidget.cpp
index d4fc08f..ce792bb 100644
--- a/src/addressline/blacklistbaloocompletion/blacklistbalooemailcompletionwidget.cpp
+++ b/src/addressline/blacklistbaloocompletion/blacklistbalooemailcompletionwidget.cpp
@@ -40,8 +40,7 @@ BlackListBalooEmailCompletionWidget::BlackListBalooEmailCompletionWidget(QWidget
: QWidget(parent),
mLimit(500)
{
- QVBoxLayout *mainLayout = new QVBoxLayout;
- setLayout(mainLayout);
+ QVBoxLayout *mainLayout = new QVBoxLayout(this);
QHBoxLayout *searchLayout = new QHBoxLayout;
mainLayout->addLayout(searchLayout);
diff --git a/src/addressline/completionconfiguredialog/completionconfiguredialog.cpp b/src/addressline/completionconfiguredialog/completionconfiguredialog.cpp
index f3bc203..78070d2 100644
--- a/src/addressline/completionconfiguredialog/completionconfiguredialog.cpp
+++ b/src/addressline/completionconfiguredialog/completionconfiguredialog.cpp
@@ -55,8 +55,7 @@ CompletionConfigureDialog::CompletionConfigureDialog(QWidget *parent)
d(new KPIM::CompletionConfigureDialogPrivate)
{
setWindowTitle(i18n("Configure completion"));
- QVBoxLayout *mainLayout = new QVBoxLayout;
- setLayout(mainLayout);
+ QVBoxLayout *mainLayout = new QVBoxLayout(this);
d->mTabWidget = new QTabWidget;
d->mTabWidget->setObjectName(QStringLiteral("tabwidget"));
diff --git a/src/ldap/kcmldap.cpp b/src/ldap/kcmldap.cpp
index 3858161..92f5936 100644
--- a/src/ldap/kcmldap.cpp
+++ b/src/ldap/kcmldap.cpp
@@ -310,9 +310,8 @@ void KCMLdap::defaults()
void KCMLdap::initGUI()
{
- QVBoxLayout *layout = new QVBoxLayout;
+ QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0);
- setLayout(layout);
QGroupBox *groupBox = new QGroupBox(i18n("LDAP Servers"), this);
QVBoxLayout *mainLayout = new QVBoxLayout(groupBox);
diff --git a/src/ldap/ldapsearchdialog.cpp b/src/ldap/ldapsearchdialog.cpp
index 764c9c9..232d67f 100644
--- a/src/ldap/ldapsearchdialog.cpp
+++ b/src/ldap/ldapsearchdialog.cpp
@@ -539,8 +539,7 @@ LdapSearchDialog::LdapSearchDialog(QWidget *parent)
{
setWindowTitle(i18n("Import Contacts from LDAP"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Cancel);
- QVBoxLayout *mainLayout = new QVBoxLayout;
- setLayout(mainLayout);
+ QVBoxLayout *mainLayout = new QVBoxLayout(this);
d->user1Button = new QPushButton;
buttonBox->addButton(d->user1Button, QDialogButtonBox::ActionRole);