Commit 6a11ac88 authored by Laurent Montel's avatar Laurent Montel
Browse files

Adapt to new api (scripted)

parent 71a32762
Pipeline #248537 passed with stage
in 3 minutes and 18 seconds
......@@ -37,6 +37,7 @@
#include <algorithm>
#include "kquery.h"
#include <kwidgetsaddons_version.h>
// Static utility functions
static void save_pattern(KComboBox *, const QString &, const QString &);
......@@ -632,8 +633,17 @@ void KfindTabWidget::setQuery(KQuery *query)
// Or is there an arch where this can happen?
#if 0
if (size < 0) { // overflow
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 100, 0)
if (KMessageBox::warningTwoActions(this, i18n("Size is too big. Set maximum size value?"), i18n("Error"), i18n("Set"), i18n("Do Not Set"))
#else
if (KMessageBox::warningYesNo(this, i18n("Size is too big. Set maximum size value?"), i18n("Error"), i18n("Set"), i18n("Do Not Set"))
#endif
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 100, 0)
== KMessageBox::ButtonCode::PrimaryAction) {
#else
== KMessageBox::Yes) {
#endif
sizeEdit->setValue(INT_MAX);
sizeUnitBox->setCurrentIndex(0);
size = INT_MAX;
......
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