Commit b52a9ac6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use {}

parent 80d716c8
Pipeline #80869 canceled with stage
......@@ -29,7 +29,7 @@ struct TestWindow : public QWidget {
mMainWidget = new QTextEdit();
auto layout = new QVBoxLayout(this);
layout->setSpacing(0);
layout->setContentsMargins(0, 0, 0, 0);
layout->setContentsMargins({});
layout->addWidget(mMainWidget);
layout->addWidget(mContainer);
}
......
......@@ -26,7 +26,7 @@ RichTextComposerWidget::RichTextComposerWidget(QWidget *parent)
, d(new KPIMTextEdit::RichTextComposerWidgetPrivate)
{
auto layout = new QHBoxLayout(this);
layout->setContentsMargins(0, 0, 0, 0);
layout->setContentsMargins({});
d->richTextComposer = new KPIMTextEdit::RichTextComposer(this);
d->richTextComposer->setObjectName(QStringLiteral("richtextcomposer"));
auto editorWidget = new RichTextEditorWidget(d->richTextComposer, this);
......
......@@ -18,7 +18,7 @@ EmoticonTextEditSelector::EmoticonTextEditSelector(QWidget *parent)
{
auto lay = new QHBoxLayout(this);
lay->setSpacing(0);
lay->setContentsMargins(0, 0, 0, 0);
lay->setContentsMargins({});
mUnicodeTab = new EmoticonUnicodeTab(this);
lay->addWidget(mUnicodeTab);
connect(mUnicodeTab, &EmoticonUnicodeTab::itemSelected, this, &EmoticonTextEditSelector::slotItemSelected);
......
......@@ -35,7 +35,7 @@ public:
: q(qq)
{
auto lay = new QVBoxLayout(q);
lay->setContentsMargins(0, 0, 0, 0);
lay->setContentsMargins({});
auto hbox = new QHBoxLayout;
QLabel *lab = new QLabel(i18n("Image Location:"));
imageUrlRequester = new KUrlRequester;
......
......@@ -36,7 +36,7 @@ public:
mBorder->setSuffix(i18n(" px"));
auto gridLayout = new QGridLayout;
gridLayout->setContentsMargins(0, 0, 0, 0);
gridLayout->setContentsMargins({});
gridLayout->addWidget(new QLabel(i18n("Rows:")), 0, 0);
gridLayout->addWidget(mRows, 0, 1);
......
......@@ -33,7 +33,7 @@ public:
QWidget *page = new QWidget(q);
auto lay = new QVBoxLayout(page);
lay->setContentsMargins(0, 0, 0, 0);
lay->setContentsMargins({});
tableWidget = new InsertTableWidget;
lay->addWidget(tableWidget);
......
......@@ -79,7 +79,7 @@ QString PlainTextEditorWidget::toPlainText() const
void PlainTextEditorWidget::init(PlainTextEditor *customEditor)
{
auto lay = new QVBoxLayout(this);
lay->setContentsMargins(0, 0, 0, 0);
lay->setContentsMargins({});
d->mTextToSpeechWidget = new KPIMTextEdit::TextToSpeechWidget(this);
lay->addWidget(d->mTextToSpeechWidget);
if (customEditor) {
......
......@@ -101,7 +101,7 @@ QString RichTextEditorWidget::toPlainText() const
void RichTextEditorWidget::init(RichTextEditor *customEditor)
{
auto lay = new QVBoxLayout(this);
lay->setContentsMargins(0, 0, 0, 0);
lay->setContentsMargins({});
d->mTextToSpeechWidget = new KPIMTextEdit::TextToSpeechWidget(this);
lay->addWidget(d->mTextToSpeechWidget);
if (customEditor) {
......
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