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
3cda34d8
Commit
3cda34d8
authored
Feb 07, 2022
by
Laurent Montel
Browse files
Add autotest + add label in layout
parent
776e365d
Pipeline
#134295
passed with stage
in 9 minutes and 54 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
plugins/messageviewerconfigureplugins/openurlwith/autotests/openurlwithconfigurecreatewidgettest.cpp
View file @
3cda34d8
...
...
@@ -7,6 +7,7 @@
#include
"openurlwithconfigurecreatewidgettest.h"
#include
"openurlwithconfigurecreatewidget.h"
#include
<QFormLayout>
#include
<QLabel>
#include
<QLineEdit>
#include
<QTest>
QTEST_MAIN
(
OpenUrlWithConfigureCreateWidgetTest
)
...
...
@@ -30,4 +31,8 @@ void OpenUrlWithConfigureCreateWidgetTest::shouldHaveDefaultValues()
auto
mCommand
=
w
.
findChild
<
QLineEdit
*>
(
QStringLiteral
(
"mCommand"
));
QVERIFY
(
mCommand
);
QVERIFY
(
mCommand
->
text
().
isEmpty
());
auto
formatHelp
=
w
.
findChild
<
QLabel
*>
(
QStringLiteral
(
"formatHelp"
));
QVERIFY
(
formatHelp
);
QCOMPARE
(
formatHelp
->
contextMenuPolicy
(),
Qt
::
NoContextMenu
);
}
plugins/messageviewerconfigureplugins/openurlwith/openurlwithconfigurecreatewidget.cpp
View file @
3cda34d8
...
...
@@ -36,6 +36,7 @@ OpenUrlWithConfigureCreateWidget::OpenUrlWithConfigureCreateWidget(QWidget *pare
"</ul>"
"</strong></p></qt>"
);
formatHelp
->
setWhatsThis
(
mCommandWhatsThis
);
mainLayout
->
addWidget
(
formatHelp
);
mCommand
->
setObjectName
(
QStringLiteral
(
"mCommand"
));
mainLayout
->
addRow
(
i18n
(
"Command:"
),
mCommand
);
...
...
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