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
KLDAP
Commits
8c3bbafa
Commit
8c3bbafa
authored
Oct 15, 2022
by
Laurent Montel
Browse files
Port deprecated methods
parent
32ad52e1
Pipeline
#248361
passed with stage
in 9 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/widgets/ldapconfigurewidget.cpp
View file @
8c3bbafa
...
...
@@ -18,6 +18,7 @@
#include
<KMessageBox>
#include
<QDialogButtonBox>
#include
<QHBoxLayout>
#include
<kwidgetsaddons_version.h>
#include
"ldapclientsearch.h"
#include
"ldapclientsearchconfig.h"
...
...
@@ -109,12 +110,20 @@ void LdapConfigureWidget::slotRemoveHost()
return
;
}
auto
ldapItem
=
dynamic_cast
<
LdapWidgetItem
*>
(
item
);
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 100, 0)
const
int
answer
=
KMessageBox
::
questionTwoActions
(
this
,
#else
const
int
answer
=
KMessageBox
::
questionYesNo
(
this
,
i18n
(
"Do you want to remove setting for host
\"
%1
\"
?"
,
ldapItem
->
server
().
host
()),
i18n
(
"Remove Host"
),
KStandardGuiItem
::
remove
(),
KStandardGuiItem
::
cancel
());
#endif
i18n
(
"Do you want to remove setting for host
\"
%1
\"
?"
,
ldapItem
->
server
().
host
()),
i18n
(
"Remove Host"
),
KStandardGuiItem
::
remove
(),
KStandardGuiItem
::
cancel
());
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 100, 0)
if
(
answer
==
KMessageBox
::
SecondaryAction
)
{
#else
if
(
answer
==
KMessageBox
::
No
)
{
#endif
return
;
}
...
...
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