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
021708b9
Commit
021708b9
authored
Mar 25, 2022
by
Laurent Montel
😁
Browse files
Add clear button
parent
63d99597
Pipeline
#154675
passed with stage
in 12 minutes and 38 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
plugins/messageviewerconfigureplugins/openurlwith/autotests/openurlwithconfigurecreatewidgettest.cpp
View file @
021708b9
...
...
@@ -28,10 +28,12 @@ void OpenUrlWithConfigureCreateWidgetTest::shouldHaveDefaultValues()
auto
mServerName
=
w
.
findChild
<
QLineEdit
*>
(
QStringLiteral
(
"mServerName"
));
QVERIFY
(
mServerName
);
QVERIFY
(
mServerName
->
text
().
isEmpty
());
QVERIFY
(
mServerName
->
isClearButtonEnabled
());
auto
mCommandLine
=
w
.
findChild
<
QLineEdit
*>
(
QStringLiteral
(
"mCommandLine"
));
QVERIFY
(
mCommandLine
);
QVERIFY
(
mCommandLine
->
text
().
isEmpty
());
QVERIFY
(
mCommandLine
->
isClearButtonEnabled
());
auto
formatHelp
=
w
.
findChild
<
QLabel
*>
(
QStringLiteral
(
"formatHelp"
));
QVERIFY
(
formatHelp
);
...
...
plugins/messageviewerconfigureplugins/openurlwith/openurlwithconfigurecreatewidget.cpp
View file @
021708b9
...
...
@@ -26,6 +26,7 @@ OpenUrlWithConfigureCreateWidget::OpenUrlWithConfigureCreateWidget(QWidget *pare
mServerName
->
setObjectName
(
QStringLiteral
(
"mServerName"
));
mainLayout
->
addRow
(
i18n
(
"Server Name:"
),
mServerName
);
mServerName
->
setClearButtonEnabled
(
true
);
KPIM
::
LineEditCatchReturnKey
(
mServerName
,
this
);
auto
formatHelp
=
new
QLabel
(
i18n
(
"<qt><a href=
\"
whatsthis1
\"
>Argument format information...</a></qt>"
),
this
);
...
...
@@ -44,6 +45,7 @@ OpenUrlWithConfigureCreateWidget::OpenUrlWithConfigureCreateWidget(QWidget *pare
mainLayout
->
addWidget
(
formatHelp
);
mCommandLine
->
setObjectName
(
QStringLiteral
(
"mCommandLine"
));
mCommandLine
->
setClearButtonEnabled
(
true
);
mainLayout
->
addRow
(
i18n
(
"Command line:"
),
mCommandLine
);
KPIM
::
LineEditCatchReturnKey
(
mCommandLine
,
this
);
...
...
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