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

Don't use {} (will create compile error on qt6)

parent c532babe
Pipeline #113082 passed with stage
in 9 minutes and 59 seconds
......@@ -49,7 +49,7 @@ SearchDuplicateResultWidgetTest::~SearchDuplicateResultWidgetTest() = default;
void SearchDuplicateResultWidgetTest::shouldHaveDefaultValue()
{
KABMergeContacts::SearchDuplicateResultWidget w;
QCOMPARE(w.layout()->contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(w.layout()->contentsMargins(), QMargins());
auto tree = w.findChild<KABMergeContacts::ResultDuplicateTreeWidget *>(QStringLiteral("result_treewidget"));
QVERIFY(tree);
......
......@@ -22,7 +22,7 @@ void ConfirmBeforeDeletingCreateRuleWidgetTest::shouldHaveDefaultValues()
ConfirmBeforeDeletingCreateRuleWidget w;
auto mainLayout = w.findChild<QHBoxLayout *>(QStringLiteral("mainLayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), {});
QCOMPARE(mainLayout->contentsMargins(), QMargins{});
auto mPatternLineEdit = w.findChild<QLineEdit *>(QStringLiteral("mPatternLineEdit"));
QVERIFY(mPatternLineEdit);
......
......@@ -26,11 +26,11 @@ void ConfirmBeforeDeletingMessageBoxWidgetTest::shouldHaveDefaultValues()
auto mainLayout = w.findChild<QHBoxLayout *>(QStringLiteral("mainLayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), {});
QCOMPARE(mainLayout->contentsMargins(), QMargins{});
auto textLayout = w.findChild<QVBoxLayout *>(QStringLiteral("textLayout"));
QVERIFY(textLayout);
QCOMPARE(textLayout->contentsMargins(), {});
QCOMPARE(textLayout->contentsMargins(), QMargins{});
auto iconLabel = w.findChild<QLabel *>(QStringLiteral("iconLabel"));
QVERIFY(iconLabel);
......
......@@ -22,7 +22,7 @@ void ConfirmBeforeDeletingWidgetTest::shouldHaveDefaultValues()
auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), {});
QCOMPARE(mainLayout->contentsMargins(), QMargins{});
auto mTreeWidget = w.findChild<QTreeWidget *>(QStringLiteral("mTreeWidget"));
QVERIFY(mTreeWidget->alternatingRowColors());
......
......@@ -21,7 +21,7 @@ void MarkdownConfigureWidgetTest::shouldHaveDefaultValue()
MarkdownConfigureWidget w;
auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(mainLayout->contentsMargins(), QMargins());
auto mLatexSupport = w.findChild<QCheckBox *>(QStringLiteral("latex"));
QVERIFY(mLatexSupport);
......
......@@ -28,7 +28,7 @@ void MarkdownCreateImageWidgetTest::shouldHaveDefaultValue()
auto mainLayout = w.findChild<QFormLayout *>(QStringLiteral("mainlayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(mainLayout->contentsMargins(), QMargins());
auto mTitle = w.findChild<QLineEdit *>(QStringLiteral("title"));
QVERIFY(mTitle);
......@@ -72,7 +72,7 @@ void MarkdownCreateImageWidgetTest::shouldHaveDefaultValue()
auto sizeWidgetLayout = w.findChild<QHBoxLayout *>(QStringLiteral("sizeWidgetLayout"));
QVERIFY(sizeWidgetLayout);
QCOMPARE(sizeWidgetLayout->contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(sizeWidgetLayout->contentsMargins(), QMargins());
}
void MarkdownCreateImageWidgetTest::shouldGenerateLink()
......
......@@ -23,7 +23,7 @@ void MarkdownCreateLinkWidgetTest::shouldHaveDefaultValue()
auto mainLayout = w.findChild<QFormLayout *>(QStringLiteral("mainlayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(mainLayout->contentsMargins(), QMargins());
auto mTitle = w.findChild<QLineEdit *>(QStringLiteral("title"));
QVERIFY(mTitle);
......
......@@ -23,7 +23,7 @@ void MarkdownPreviewWidgetTest::shouldHaveDefaultValue()
MarkdownPreviewWidget w;
auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainLayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(mainLayout->contentsMargins(), QMargins());
auto mWebView = w.findChild<QWebEngineView *>(QStringLiteral("webengine"));
QVERIFY(mWebView);
......
......@@ -24,7 +24,7 @@ void ExternalComposerConfigureWidgetTest::shouldHaveDefaultValues()
ExternalComposerConfigureWidget w(nullptr);
auto vboxlayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(vboxlayout);
QCOMPARE(vboxlayout->contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(vboxlayout->contentsMargins(), QMargins());
auto mExternalEditorCheck = w.findChild<QCheckBox *>(QStringLiteral("enabled"));
QVERIFY(mExternalEditorCheck);
......
......@@ -25,7 +25,7 @@ void InsertShorturlConfigureWidgetTest::shouldHaveDefaultValues()
auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(mainLayout->contentsMargins(), QMargins());
auto lab = w.findChild<QLabel *>(QStringLiteral("label"));
QVERIFY(lab);
......
......@@ -22,7 +22,7 @@ void QuickTextConfigureWidgetTest::shouldHaveDefaultValues()
auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(mainLayout);
QCOMPARE(w.contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(w.contentsMargins(), QMargins());
auto mSnippetWidget = w.findChild<QuickTextWidget *>(QStringLiteral("snippetwidget"));
QVERIFY(mSnippetWidget);
......
......@@ -22,7 +22,7 @@ void QuickTextWidgetTest::shouldHaveDefaultValues()
QuickTextWidget w;
auto mainLayout = w.findChild<QHBoxLayout *>(QStringLiteral("mainLayout"));
QVERIFY(mainLayout);
QCOMPARE(w.contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(w.contentsMargins(), QMargins());
auto mTreeWidget = w.findChild<QuicktextTreeWidget *>(QStringLiteral("treewidget"));
QVERIFY(mTreeWidget);
......
......@@ -24,7 +24,7 @@ void AutomaticAddContactsConfigureTabTest::shouldHaveDefaultValue()
AutomaticAddContactsConfigureTab w(nullptr);
auto vboxlayout = w.findChild<QHBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(vboxlayout);
QCOMPARE(vboxlayout->contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(vboxlayout->contentsMargins(), QMargins());
auto mTabWidget = w.findChild<QTabWidget *>(QStringLiteral("tabwidget"));
QVERIFY(mTabWidget);
}
......
......@@ -56,7 +56,7 @@ void AutomaticAddContactsTabWidgetTest::shouldHaveDefaultValue()
auto hlay = w->findChild<QHBoxLayout *>(QStringLiteral("folderlayout"));
QVERIFY(hlay);
QCOMPARE(hlay->contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(hlay->contentsMargins(), QMargins());
auto lab = w->findChild<QLabel *>(QStringLiteral("labelfolder"));
QVERIFY(lab);
......
......@@ -22,7 +22,7 @@ void ConfirmAddressConfigureTabTest::shouldHaveDefaultValue()
ConfirmAddressConfigureTab w(nullptr);
auto vboxlayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(vboxlayout);
QCOMPARE(vboxlayout->contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(vboxlayout->contentsMargins(), QMargins());
auto mTabWidget = w.findChild<QTabWidget *>(QStringLiteral("tabwidget"));
QVERIFY(mTabWidget);
......
......@@ -25,7 +25,7 @@ void ConfirmAddressWidgetTest::shouldHaveDefaultValue()
ConfirmAddressWidget w;
auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(mainLayout->contentsMargins(), QMargins());
auto listEmails = w.findChild<QListWidget *>(QStringLiteral("listemails"));
QVERIFY(listEmails);
......
......@@ -28,7 +28,7 @@ void GrammalecteConfigWidgetTest::shouldHaveDefaultValue()
GrammalecteConfigWidget w(nullptr, true);
auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(mainLayout->contentsMargins(), QMargins());
auto mTab = w.findChild<QTabWidget *>(QStringLiteral("mTab"));
QVERIFY(mTab);
......
......@@ -22,7 +22,7 @@ void GrammarResultWidgetTest::shouldHaveDefaultValue()
GrammalecteResultWidget w;
auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(mainLayout->contentsMargins(), QMargins());
auto mResult = w.findChild<GrammarResultTextEdit *>(QStringLiteral("grammarResult"));
QVERIFY(mResult);
......
......@@ -28,7 +28,7 @@ void LanguageToolConfigWidgetTest::shouldHaveDefaultValue()
LanguageToolConfigWidget w;
auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(mainLayout->contentsMargins(), QMargins());
auto mUseLocalInstance = w.findChild<QCheckBox *>(QStringLiteral("uselocalinstance"));
QVERIFY(mUseLocalInstance);
......
......@@ -20,7 +20,7 @@ void LanguageToolResultWidgetTest::shouldHaveDefaultValue()
LanguageToolResultWidget w;
auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), QMargins(0, 0, 0, 0));
QCOMPARE(mainLayout->contentsMargins(), QMargins());
auto mResult = w.findChild<GrammarResultTextEdit *>(QStringLiteral("grammarResult"));
QVERIFY(mResult);
......
Supports Markdown
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