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
Utilities
KDebugSettings
Commits
babc1c0a
Commit
babc1c0a
authored
Oct 15, 2022
by
Laurent Montel
Browse files
Adapt to new api (scripted)
parent
1afbdee6
Pipeline
#248479
passed with stage
in 10 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/customdebugsettingspage.cpp
View file @
babc1c0a
...
...
@@ -19,6 +19,7 @@
#include
<QPointer>
#include
<QPushButton>
#include
<QVBoxLayout>
#include
<kwidgetsaddons_version.h>
CustomDebugSettingsPage
::
CustomDebugSettingsPage
(
QWidget
*
parent
)
:
QWidget
(
parent
)
...
...
@@ -182,7 +183,12 @@ void CustomDebugSettingsPage::slotRemoveRules()
}
const
QString
str
=
i18np
(
"Do you want to remove this rule?"
,
"Do you want to remove these %1 rules?"
,
lst
.
count
());
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 100, 0)
if
(
KMessageBox
::
ButtonCode
::
SecondaryAction
==
KMessageBox
::
warningTwoActions
(
this
,
str
,
i18n
(
"Remove Rule"
),
KStandardGuiItem
::
remove
(),
KStandardGuiItem
::
cancel
()))
{
#else
if
(
KMessageBox
::
No
==
KMessageBox
::
warningYesNo
(
this
,
str
,
i18n
(
"Remove Rule"
),
KStandardGuiItem
::
remove
()))
{
#endif
return
;
}
for
(
int
i
=
0
;
i
<
lst
.
count
();
++
i
)
{
...
...
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