Skip to content
GitLab
Menu
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
a99b2587
Commit
a99b2587
authored
Aug 12, 2021
by
Laurent Montel
😁
Browse files
Add more autotest
parent
5e1acb11
Pipeline
#74368
passed with stage
in 54 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kmail/checkbeforedeletemailplugins/confirmbeforedeleting/autotests/confirmbeforedeletingmessageboxwidgettest.cpp
View file @
a99b2587
...
...
@@ -19,21 +19,17 @@ ConfirmBeforeDeletingMessageBoxWidgetTest::ConfirmBeforeDeletingMessageBoxWidget
void
ConfirmBeforeDeletingMessageBoxWidgetTest
::
shouldHaveDefaultValues
()
{
ConfirmBeforeDeletingMessageBoxWidget
w
;
// TODO
auto
mUseSameResultForOtherCheck
=
w
.
findChild
<
QCheckBox
*>
(
QStringLiteral
(
"mUseSameResultForOtherCheck"
));
QVERIFY
(
mUseSameResultForOtherCheck
);
QVERIFY
(
!
mUseSameResultForOtherCheck
->
text
().
isEmpty
());
QVERIFY
(
!
mUseSameResultForOtherCheck
->
isChecked
());
#if 0
, mLabelInfo(new QLabel(this))
, mUseSameResultForOtherCheck(new QCheckBox(i18n("Reuse..."), this)) //TODO fix i18n
{
auto mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins({});
mLabelInfo->setObjectName(QStringLiteral("mLabelInfo"));
mLabelInfo->setWordWrap(true);
mainLayout->addWidget(mLabelInfo);
auto
mainLayout
=
w
.
findChild
<
QVBoxLayout
*>
(
QStringLiteral
(
"mainLayout"
));
QVERIFY
(
mainLayout
);
QCOMPARE
(
mainLayout
->
contentsMargins
(),
{});
mUseSameResultForOtherCheck->setObjectName(QStringLiteral("mUseSameResultForOtherCheck"));
mainLayout->addWidget(mUseSameResultForOtherCheck);
#endif
auto
mLabelInfo
=
w
.
findChild
<
QLabel
*>
(
QStringLiteral
(
"mLabelInfo"
));
QVERIFY
(
mLabelInfo
);
QVERIFY
(
mLabelInfo
->
text
().
isEmpty
());
QVERIFY
(
mLabelInfo
->
wordWrap
());
}
kmail/checkbeforedeletemailplugins/confirmbeforedeleting/confirmbeforedeletingmessageboxwidget.cpp
View file @
a99b2587
...
...
@@ -26,6 +26,8 @@ ConfirmBeforeDeletingMessageBoxWidget::ConfirmBeforeDeletingMessageBoxWidget(QWi
mUseSameResultForOtherCheck
->
setObjectName
(
QStringLiteral
(
"mUseSameResultForOtherCheck"
));
mainLayout
->
addWidget
(
mUseSameResultForOtherCheck
);
mUseSameResultForOtherCheck
->
setChecked
(
false
);
}
ConfirmBeforeDeletingMessageBoxWidget
::~
ConfirmBeforeDeletingMessageBoxWidget
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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