Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Add-ons
Commits
d6cb54ab
Commit
d6cb54ab
authored
Dec 22, 2021
by
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
Changes
30
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kaddressbook/plugins/mergelib/autotests/searchduplicateresultwidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
...
...
kmail/checkbeforedeletemailplugins/confirmbeforedeleting/autotests/confirmbeforedeletingcreaterulewidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
...
...
kmail/checkbeforedeletemailplugins/confirmbeforedeleting/autotests/confirmbeforedeletingmessageboxwidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
...
...
kmail/checkbeforedeletemailplugins/confirmbeforedeleting/autotests/confirmbeforedeletingwidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
());
...
...
kmail/editorconvertertextplugins/markdown/autotests/markdownconfigurewidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
...
...
kmail/editorconvertertextplugins/markdown/autotests/markdowncreateimagewidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
()
...
...
kmail/editorconvertertextplugins/markdown/autotests/markdowncreatelinkwidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
...
...
kmail/editorconvertertextplugins/markdown/autotests/markdownpreviewwidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
...
...
kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfigurewidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
...
...
kmail/editorplugins/insertshorturl/autotests/insertshorturlconfigurewidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
...
...
kmail/editorplugins/quicktext/autotests/quicktextconfigurewidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
...
...
kmail/editorplugins/quicktext/autotests/quicktextwidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
...
...
kmail/editorsendcheckplugins/automaticaddcontacts/autotests/automaticaddcontactsconfiguretabtest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
}
...
...
kmail/editorsendcheckplugins/automaticaddcontacts/autotests/automaticaddcontactstabwidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
...
...
kmail/editorsendcheckplugins/confirm-address/autotests/confirmaddressconfiguretabtest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
...
...
kmail/editorsendcheckplugins/confirm-address/autotests/confirmaddresswidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
...
...
kmail/grammarplugins/grammalecte/autotests/grammalecteconfigwidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
...
...
kmail/grammarplugins/grammalecte/autotests/grammalecteresultwidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
...
...
kmail/grammarplugins/languagetool/autotests/languagetoolconfigwidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
...
...
kmail/grammarplugins/languagetool/autotests/languagetoolresultwidgettest.cpp
View file @
d6cb54ab
...
...
@@ -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
);
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment