Commit babc1c0a authored by Laurent Montel's avatar Laurent Montel
Browse files

Adapt to new api (scripted)

parent 1afbdee6
Pipeline #248479 passed with stage
in 10 minutes and 38 seconds
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment