Changeset View
Changeset View
Standalone View
Standalone View
src/querymatch.cpp
Show First 20 Lines • Show All 327 Lines • ▼ Show 20 Line(s) | |||||
328 | void QueryMatch::run(const RunnerContext &context) const | 328 | void QueryMatch::run(const RunnerContext &context) const | ||
329 | { | 329 | { | ||
330 | //qCDebug(KRUNNER) << "we run the term" << context.query() << "whose type is" << d->mimeType; | 330 | //qCDebug(KRUNNER) << "we run the term" << context.query() << "whose type is" << d->mimeType; | ||
331 | if (d->runner) { | 331 | if (d->runner) { | ||
332 | d->runner.data()->run(context, *this); | 332 | d->runner.data()->run(context, *this); | ||
333 | } | 333 | } | ||
334 | } | 334 | } | ||
335 | 335 | | |||
336 | #if KRUNNER_BUILD_DEPRECATED_SINCE(5, 70) | ||||
336 | bool QueryMatch::hasConfigurationInterface() const | 337 | bool QueryMatch::hasConfigurationInterface() const | ||
337 | { | 338 | { | ||
338 | return d->runner && d->runner.data()->hasRunOptions(); | 339 | return false; | ||
meven: Did you really need to remove this code ? | |||||
The question this method should answer is: Does this match have a configuration interface? alex: The question this method should answer is: Does this match have a configuration interface?
And… | |||||
339 | } | 340 | } | ||
340 | 341 | | |||
341 | void QueryMatch::createConfigurationInterface(QWidget *parent) | 342 | void QueryMatch::createConfigurationInterface(QWidget *parent) | ||
meven: #if KRUNNER_BUILD_DEPRECATED_SINCE(5, 71) | |||||
342 | { | 343 | { | ||
343 | if (hasConfigurationInterface()) { | 344 | Q_UNUSED(parent) | ||
344 | d->runner.data()->createRunOptions(parent); | | |||
345 | } | | |||
346 | } | 345 | } | ||
346 | #endif | ||||
347 | 347 | | |||
348 | } // Plasma namespace | 348 | } // Plasma namespace | ||
349 | 349 | |
Did you really need to remove this code ?