Commit 315d4ba1 authored by Laurent Montel's avatar Laurent Montel 😁

Use {}

parent da194d7c
......@@ -70,7 +70,7 @@ CryptoPagePlugin::CryptoPagePlugin()
// Send preferences/sign (see kleo/kleo/enum.h)
QWidget *hbox = new QWidget(box);
QHBoxLayout *hboxHBoxLayout = new QHBoxLayout(hbox);
hboxHBoxLayout->setContentsMargins(0, 0, 0, 0);
hboxHBoxLayout->setContentsMargins({});
l = new QLabel(i18n("Sign:"), hbox);
hboxHBoxLayout->addWidget(l);
......@@ -88,7 +88,7 @@ CryptoPagePlugin::CryptoPagePlugin()
// Send preferences/encrypt (see kleo/kleo/enum.h)
hbox = new QWidget(box);
hboxHBoxLayout = new QHBoxLayout(hbox);
hboxHBoxLayout->setContentsMargins(0, 0, 0, 0);
hboxHBoxLayout->setContentsMargins({});
l = new QLabel(i18n("Encrypt:"), hbox);
hboxHBoxLayout->addWidget(l);
......
......@@ -296,7 +296,7 @@ void CSVImportDialog::initGUI()
QGridLayout *layout = new QGridLayout;
mainLayout->addLayout(layout);
layout->setContentsMargins(0, 0, 0, 0);
layout->setContentsMargins({});
QHBoxLayout *hbox = new QHBoxLayout;
......
......@@ -18,7 +18,7 @@ VCardExportSelectionWidget::VCardExportSelectionWidget(QWidget *parent)
: QWidget(parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
QGroupBox *gbox = new QGroupBox(
i18nc("@title:group", "Fields to be exported"), this);
mainLayout->addWidget(gbox);
......
......@@ -21,7 +21,7 @@ GravatarUpdateWidget::GravatarUpdateWidget(QWidget *parent)
: QWidget(parent)
{
QGridLayout *mainLayout = new QGridLayout(this);
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
QHBoxLayout *hboxEmail = new QHBoxLayout;
......
......@@ -29,7 +29,7 @@ MergeContactWidget::MergeContactWidget(QWidget *parent)
, mConflictTypes(MergeContacts::None)
{
QVBoxLayout *lay = new QVBoxLayout(this);
lay->setContentsMargins(0, 0, 0, 0);
lay->setContentsMargins({});
QSplitter *splitter = new QSplitter;
splitter->setObjectName(QStringLiteral("splitter"));
......
......@@ -27,7 +27,7 @@ SearchDuplicateResultWidget::SearchDuplicateResultWidget(QWidget *parent)
: QWidget(parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
QSplitter *splitter = new QSplitter;
splitter->setObjectName(QStringLiteral("splitter"));
......
......@@ -21,7 +21,7 @@ MergeContactSelectInformationScrollArea::MergeContactSelectInformationScrollArea
: QWidget(parent)
{
QVBoxLayout *vbox = new QVBoxLayout(this);
vbox->setContentsMargins(0, 0, 0, 0);
vbox->setContentsMargins({});
mStackWidget = new QStackedWidget;
mStackWidget->setObjectName(QStringLiteral("stackwidget"));
vbox->addWidget(mStackWidget);
......
......@@ -14,7 +14,7 @@ MergeContactSelectInformationWidget::MergeContactSelectInformationWidget(QWidget
: QWidget(parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
}
MergeContactSelectInformationWidget::~MergeContactSelectInformationWidget()
......
......@@ -15,7 +15,7 @@ MarkdownConfigureWidget::MarkdownConfigureWidget(QWidget *parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mLatexSupport = new QCheckBox(i18n("Enable embedded LaTeX"), this);
mLatexSupport->setObjectName(QStringLiteral("latex"));
......
......@@ -16,7 +16,7 @@ MarkdownCreateImageWidget::MarkdownCreateImageWidget(QWidget *parent)
{
QFormLayout *mainLayout = new QFormLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mTitle = new QLineEdit(this);
mTitle->setObjectName(QStringLiteral("title"));
......
......@@ -14,7 +14,7 @@ MarkdownCreateLinkWidget::MarkdownCreateLinkWidget(QWidget *parent)
{
QFormLayout *mainLayout = new QFormLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mTitle = new QLineEdit(this);
mTitle->setObjectName(QStringLiteral("title"));
......
......@@ -24,7 +24,7 @@ MarkdownPreviewWidget::MarkdownPreviewWidget(QWidget *parent)
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
MarkdownEnginePage *page = new MarkdownEnginePage(this);
mWebView = new QWebEngineView(this);
......
......@@ -17,7 +17,7 @@ ExternalComposerConfigureWidget::ExternalComposerConfigureWidget(QWidget *parent
: MessageComposer::PluginEditorInitConfigureWidget(parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mExternalEditorCheck = new QCheckBox(i18n("Use external editor instead of composer"), this);
......
......@@ -16,7 +16,7 @@ SelectMailWidget::SelectMailWidget(QWidget *parent)
{
QHBoxLayout *layout = new QHBoxLayout(this);
layout->setObjectName(QStringLiteral("mainlayout"));
layout->setContentsMargins(0, 0, 0, 0);
layout->setContentsMargins({});
mView = new Akonadi::EmailAddressSelectionWidget(true, nullptr, this);
mView->setObjectName(QStringLiteral("emailaddressselectionwidget"));
......
......@@ -20,7 +20,7 @@ InsertShorturlConfigureWidget::InsertShorturlConfigureWidget(QWidget *parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
QLabel *lab = new QLabel(i18n("Select Short URL server:"), this);
lab->setObjectName(QStringLiteral("label"));
......
......@@ -15,7 +15,7 @@ QuickTextConfigureWidget::QuickTextConfigureWidget(QWidget *parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mSnippetWidget = new QuickTextWidget(this);
mSnippetWidget->setObjectName(QStringLiteral("snippetwidget"));
......
......@@ -19,7 +19,7 @@ QuickTextWidget::QuickTextWidget(QWidget *parent)
{
QHBoxLayout *mainLayout = new QHBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mSnippetsManager = new QuicktextManager(this, this);
......
......@@ -19,7 +19,7 @@ AutomaticAddContactsConfigureTab::AutomaticAddContactsConfigureTab(QWidget *pare
{
QHBoxLayout *mainLayout = new QHBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mTabWidget = new QTabWidget(this);
mTabWidget->setObjectName(QStringLiteral("tabwidget"));
mainLayout->addWidget(mTabWidget);
......
......@@ -16,7 +16,7 @@ AutomaticAddContactsConfigureWidget::AutomaticAddContactsConfigureWidget(QWidget
: MessageComposer::PluginEditorCheckBeforeSendConfigureWidget(parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mConfigureTab = new AutomaticAddContactsConfigureTab(this);
......
......@@ -32,7 +32,7 @@ AutomaticAddContactsTabWidget::AutomaticAddContactsTabWidget(QWidget *parent, QA
mainLayout->addWidget(mEnabled);
QHBoxLayout *hlay = new QHBoxLayout;
hlay->setContentsMargins(0, 0, 0, 0);
hlay->setContentsMargins({});
hlay->setObjectName(QStringLiteral("folderlayout"));
mainLayout->addLayout(hlay);
......
......@@ -15,7 +15,7 @@ CheckBeforeSendConfigureWidget::CheckBeforeSendConfigureWidget(QWidget *parent)
: MessageComposer::PluginEditorCheckBeforeSendConfigureWidget(parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mCheckPlainTextMail = new QCheckBox(i18n("Send as plain text"), this);
......
......@@ -17,7 +17,7 @@ ConfirmAddressConfigureTab::ConfirmAddressConfigureTab(QWidget *parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mTabWidget = new QTabWidget(this);
mTabWidget->setObjectName(QStringLiteral("tabwidget"));
......
......@@ -17,7 +17,7 @@ ConfirmAddressConfigureTabWidget::ConfirmAddressConfigureTabWidget(QWidget *pare
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
QGroupBox *groupBoxDomainName = new QGroupBox(this);
groupBoxDomainName->setObjectName(QStringLiteral("groupboxdomainname"));
......
......@@ -16,7 +16,7 @@ ConfirmAddressConfigureWidget::ConfirmAddressConfigureWidget(QWidget *parent)
: MessageComposer::PluginEditorCheckBeforeSendConfigureWidget(parent)
{
QVBoxLayout *vboxlayout = new QVBoxLayout(this);
vboxlayout->setContentsMargins(0, 0, 0, 0);
vboxlayout->setContentsMargins({});
vboxlayout->setObjectName(QStringLiteral("mainlayout"));
mConfirmAddressConfigureTab = new ConfirmAddressConfigureTab(this);
mConfirmAddressConfigureTab->setObjectName(QStringLiteral("confirmaddresstab"));
......
......@@ -15,7 +15,7 @@ ConfirmAddressWidget::ConfirmAddressWidget(QWidget *parent)
: QWidget(parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mainLayout->setObjectName(QStringLiteral("mainlayout"));
QLabel *lab = new QLabel(i18n("Potentially invalid emails are displayed in red:"), this);
......
......@@ -21,7 +21,7 @@ GrammalecteInterface::GrammalecteInterface(KActionCollection *ac, QWidget *paren
: MessageComposer::PluginEditorGrammarCustomToolsViewInterface(parent)
{
QHBoxLayout *layout = new QHBoxLayout(this);
layout->setContentsMargins(0, 0, 0, 0);
layout->setContentsMargins({});
mGrammarResultWidget = new GrammalecteResultWidget(this);
connect(mGrammarResultWidget, &GrammalecteResultWidget::replaceText, this, &GrammalecteInterface::slotReplaceText);
connect(mGrammarResultWidget, &GrammalecteResultWidget::checkAgain, this, &GrammalecteInterface::checkAgain);
......
......@@ -27,7 +27,7 @@ GrammalecteConfigWidget::GrammalecteConfigWidget(QWidget *parent, bool disableMe
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
QTabWidget *mTab = new QTabWidget(this);
mTab->setObjectName(QStringLiteral("mTab"));
......
......@@ -17,11 +17,11 @@ GrammarResultWidget::GrammarResultWidget(QWidget *parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mainLayout->setSpacing(0);
mExtraWidgetLayout = new QHBoxLayout;
mExtraWidgetLayout->setContentsMargins(0, 0, 0, 0);
mExtraWidgetLayout->setContentsMargins({});
mainLayout->addLayout(mExtraWidgetLayout);
QToolButton *closeBtn = new QToolButton(this);
......
......@@ -22,7 +22,7 @@ LanguageToolInterface::LanguageToolInterface(KActionCollection *ac, QWidget *par
: MessageComposer::PluginEditorGrammarCustomToolsViewInterface(parent)
{
QHBoxLayout *layout = new QHBoxLayout(this);
layout->setContentsMargins(0, 0, 0, 0);
layout->setContentsMargins({});
mGrammarResultWidget = new LanguageToolResultWidget(this);
connect(mGrammarResultWidget, &LanguageToolResultWidget::replaceText, this, &LanguageToolInterface::slotReplaceText);
connect(mGrammarResultWidget, &LanguageToolResultWidget::checkAgain, this, &LanguageToolInterface::checkAgain);
......
......@@ -25,7 +25,7 @@ LanguageToolConfigWidget::LanguageToolConfigWidget(QWidget *parent)
mLanguageToolUpdateCombobox = new LanguageToolUpdateComboBox(this);
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mUseLocalInstance = new QCheckBox(i18n("Use Local Instance"), this);
mUseLocalInstance->setObjectName(QStringLiteral("uselocalinstance"));
......@@ -33,7 +33,7 @@ LanguageToolConfigWidget::LanguageToolConfigWidget(QWidget *parent)
QHBoxLayout *instanceLayout = new QHBoxLayout;
instanceLayout->setObjectName(QStringLiteral("instancelayout"));
instanceLayout->setContentsMargins(0, 0, 0, 0);
instanceLayout->setContentsMargins({});
mInstancePathLabel = new QLabel(i18n("Instance Path:"), this);
mInstancePathLabel->setObjectName(QStringLiteral("instancepath"));
mInstancePathLabel->setEnabled(false);
......
......@@ -61,7 +61,7 @@ void LanguageToolResultWidget::addExtraWidget()
{
QHBoxLayout *extraWidgetLayout = new QHBoxLayout;
extraWidgetLayout->setObjectName(QStringLiteral("extraWidgetLayout"));
extraWidgetLayout->setContentsMargins(0, 0, 0, 0);
extraWidgetLayout->setContentsMargins({});
mLanguageToolComboBox = new LanguageToolComboBox(this);
mLanguageToolComboBox->setObjectName(QStringLiteral("languagetoolcombobox"));
extraWidgetLayout->addWidget(mLanguageToolComboBox);
......
......@@ -37,7 +37,7 @@ ConfigDialog::ConfigDialog(QWidget *parent)
mainLayout->addStretch(1);
mainLayout->addWidget(buttonBox);
QVBoxLayout *topLayout = new QVBoxLayout(topFrame);
topLayout->setContentsMargins(0, 0, 0, 0);
topLayout->setContentsMargins({});
QGroupBox *dayNumBox = new QGroupBox(i18n("Show Date Number"), topFrame);
topLayout->addWidget(dayNumBox);
......
......@@ -36,7 +36,7 @@ ConfigDialog::ConfigDialog(QWidget *parent)
QFrame *topFrame = new QFrame(this);
mainLayout->addWidget(topFrame);
QVBoxLayout *topLayout = new QVBoxLayout(topFrame);
topLayout->setContentsMargins(0, 0, 0, 0);
topLayout->setContentsMargins({});
QGroupBox *aspectRatioBox = new QGroupBox(i18n("Thumbnail Aspect Ratio Mode"), topFrame);
topLayout->addWidget(aspectRatioBox);
......
......@@ -16,7 +16,7 @@ TranslatorView::TranslatorView(KActionCollection *ac, QWidget *parent)
: PimCommon::CustomToolsViewInterface(parent)
{
QHBoxLayout *layout = new QHBoxLayout(this);
layout->setContentsMargins(0, 0, 0, 0);
layout->setContentsMargins({});
mTranslatorWidget = new PimCommon::TranslatorWidget(this);
connect(mTranslatorWidget, &PimCommon::TranslatorWidget::toolsWasClosed, this, &TranslatorView::toolsWasClosed);
......
......@@ -22,7 +22,7 @@ DKIMAdvancedWidget::DKIMAdvancedWidget(QWidget *parent)
{
QFormLayout *mainLayout = new QFormLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mCheckDKIMWhenOnlyTesting = new QCheckBox(i18n("Still verify the signature, if a domain is only testing DKIM"), this);
mCheckDKIMWhenOnlyTesting->setObjectName(QStringLiteral("mCheckDKIMWhenOnlyTesting"));
......
......@@ -14,7 +14,7 @@ DKIMAuthenticationVerifiedServerWidget::DKIMAuthenticationVerifiedServerWidget(Q
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mSelector = new DKIMAuthenticationVerifiedServerSelectorWidget(this);
mSelector->setObjectName(QStringLiteral("mSelector"));
......
......@@ -20,7 +20,7 @@ DKIMConfigureTab::DKIMConfigureTab(QWidget *parent)
{
QHBoxLayout *mainLayout = new QHBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mTabWidget = new QTabWidget(this);
mTabWidget->setObjectName(QStringLiteral("tabwidget"));
......
......@@ -14,7 +14,7 @@ DKIMConfigureWidget::DKIMConfigureWidget(QWidget *parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mTabWidget = new DKIMConfigureTab(this);
mTabWidget->setObjectName(QStringLiteral("tabwidget"));
......
......@@ -19,7 +19,7 @@ DKIMGeneralWidget::DKIMGeneralWidget(QWidget *parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mEnableDkimSupport = new QCheckBox(i18n("Enable DKIM Support"));
mEnableDkimSupport->setObjectName(QStringLiteral("enableDkimSupport"));
......@@ -32,7 +32,7 @@ DKIMGeneralWidget::DKIMGeneralWidget(QWidget *parent)
mainLayout->addWidget(mSaveResult);
QHBoxLayout *saveKeyLayout = new QHBoxLayout;
saveKeyLayout->setContentsMargins(0, 0, 0, 0);
saveKeyLayout->setContentsMargins({});
mainLayout->addLayout(saveKeyLayout);
QLabel *saveKeyLabel = new QLabel(i18n("Save Record Key:"), this);
saveKeyLabel->setObjectName(QStringLiteral("saveKeyLabel"));
......
......@@ -19,7 +19,7 @@ DKIMKeyRecordWidget::DKIMKeyRecordWidget(QWidget *parent)
{
QHBoxLayout *mainLayout = new QHBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mManagerKeyWidget = new MessageViewer::DKIMManagerKeyWidget(this);
mManagerKeyWidget->setObjectName(QStringLiteral("mManagerKeyWidget"));
......
......@@ -22,7 +22,7 @@ DKIMPolicyWidget::DKIMPolicyWidget(QWidget *parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mVerifyIfEmailMustBeSigned = new QCheckBox(i18n("Check if e-mail should be signed"), this);
mVerifyIfEmailMustBeSigned->setObjectName(QStringLiteral("mVerifyIfEmailMustBeSigned"));
......@@ -57,7 +57,7 @@ DKIMPolicyWidget::DKIMPolicyWidget(QWidget *parent)
mainLayout->addWidget(mAutoGenerateRule);
QHBoxLayout *autogenerateOnlyLayout = new QHBoxLayout;
autogenerateOnlyLayout->setContentsMargins(0, 0, 0, 0);
autogenerateOnlyLayout->setContentsMargins({});
mainLayout->addLayout(autogenerateOnlyLayout);
QSpacerItem *item = new QSpacerItem(30, 0);
......
......@@ -16,7 +16,7 @@ ExpireAccountTrashFolderConfigWidget::ExpireAccountTrashFolderConfigWidget(QWidg
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mCollectionExpiryWidget = new MailCommon::CollectionExpiryWidget(this);
mCollectionExpiryWidget->setObjectName(QStringLiteral("mCollectionExpiryWidget"));
......
......@@ -21,7 +21,7 @@ FolderConfigureSettingsPageWidget::FolderConfigureSettingsPageWidget(QWidget *pa
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
QTabWidget *tab = new QTabWidget(this);
tab->setObjectName(QStringLiteral("tab"));
......
......@@ -15,7 +15,7 @@ FolderConfigureSettingsWidget::FolderConfigureSettingsWidget(QWidget *parent)
{
QHBoxLayout *mainLayout = new QHBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
//TODO add label ?
......
......@@ -16,7 +16,7 @@ FolderConfigureTreeWidget::FolderConfigureTreeWidget(QWidget *parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
auto ftw = new MailCommon::FolderTreeWidget(this, nullptr,
MailCommon::FolderTreeWidget::TreeViewOptions(MailCommon::FolderTreeWidget::UseDistinctSelectionModel
|MailCommon::FolderTreeWidget::HideStatistics
......
......@@ -22,7 +22,7 @@ GravatarConfigureSettingsPluginWidget::GravatarConfigureSettingsPluginWidget(QWi
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mEnableGravatarSupport = new QCheckBox(i18n("Enable Gravatar Support"));
mEnableGravatarSupport->setObjectName(QStringLiteral("gravatarcheckbox"));
......
......@@ -18,7 +18,7 @@ EventDateTimeWidget::EventDateTimeWidget(QWidget *parent)
{
QHBoxLayout *mainLayout = new QHBoxLayout(this);
mainLayout->setSpacing(0);
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
mDateEdit = new KDateComboBox;
mDateEdit->setObjectName(QStringLiteral("eventdatecombobox"));
mainLayout->addWidget(mDateEdit);
......
......@@ -43,7 +43,7 @@ EventEdit::EventEdit(QWidget *parent)
vbox->setSpacing(2);
QHBoxLayout *hbox = new QHBoxLayout;
hbox->setContentsMargins(0, 0, 0, 0);
hbox->setContentsMargins({});
hbox->setSpacing(2);
vbox->addLayout(hbox);
......@@ -77,7 +77,7 @@ EventEdit::EventEdit(QWidget *parent)
hbox->addWidget(mCollectionCombobox);
hbox = new QHBoxLayout;
hbox->setContentsMargins(0, 0, 0, 0);
hbox->setContentsMargins({});
hbox->setSpacing(2);
vbox->addLayout(hbox);
......@@ -112,7 +112,7 @@ EventEdit::EventEdit(QWidget *parent)
hbox = new QHBoxLayout;
hbox->setSpacing(2);
hbox->setContentsMargins(0, 0, 0, 0);
hbox->setContentsMargins({});
vbox->addLayout(hbox);
hbox->addStretch(1);
......
......@@ -38,7 +38,7 @@ NoteEdit::NoteEdit(QWidget *parent)