the methods are now virtual, call directly
This commit is contained in:
parent
983bacb8b7
commit
f6bbda4258
@ -264,7 +264,7 @@ public:
|
|||||||
if (runner) {
|
if (runner) {
|
||||||
kDebug() << "================= loading runner:" << service->name() << "=================";
|
kDebug() << "================= loading runner:" << service->name() << "=================";
|
||||||
QObject::connect(runner, SIGNAL(matchingSuspended(bool)), q, SLOT(runnerMatchingSuspended(bool)));
|
QObject::connect(runner, SIGNAL(matchingSuspended(bool)), q, SLOT(runnerMatchingSuspended(bool)));
|
||||||
QMetaObject::invokeMethod(runner, "init");
|
runner->init();
|
||||||
}
|
}
|
||||||
|
|
||||||
return runner;
|
return runner;
|
||||||
@ -608,14 +608,8 @@ QMimeData * RunnerManager::mimeDataForMatch(const QString &id) const
|
|||||||
QMimeData * RunnerManager::mimeDataForMatch(const QueryMatch &match) const
|
QMimeData * RunnerManager::mimeDataForMatch(const QueryMatch &match) const
|
||||||
{
|
{
|
||||||
AbstractRunner *runner = match.runner();
|
AbstractRunner *runner = match.runner();
|
||||||
QMimeData *mimeData;
|
if (runner) {
|
||||||
if (runner && QMetaObject::invokeMethod(
|
return runner->mimeDataForMatch(match);
|
||||||
runner,
|
|
||||||
"mimeDataForMatch", Qt::DirectConnection,
|
|
||||||
Q_RETURN_ARG(QMimeData*, mimeData),
|
|
||||||
Q_ARG(const Plasma::QueryMatch *, &match)
|
|
||||||
)) {
|
|
||||||
return mimeData;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user