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

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);
......
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