the methods are now virtual, call directly

This commit is contained in:
Aaron Seigo 2011-05-20 09:01:36 +02:00
parent 983bacb8b7
commit f6bbda4258

View File

@ -264,7 +264,7 @@ public:
if (runner) {
kDebug() << "================= loading runner:" << service->name() << "=================";
QObject::connect(runner, SIGNAL(matchingSuspended(bool)), q, SLOT(runnerMatchingSuspended(bool)));
QMetaObject::invokeMethod(runner, "init");
runner->init();
}
return runner;
@ -608,14 +608,8 @@ QMimeData * RunnerManager::mimeDataForMatch(const QString &id) const
QMimeData * RunnerManager::mimeDataForMatch(const QueryMatch &match) const
{
AbstractRunner *runner = match.runner();
QMimeData *mimeData;
if (runner && QMetaObject::invokeMethod(
runner,
"mimeDataForMatch", Qt::DirectConnection,
Q_RETURN_ARG(QMimeData*, mimeData),
Q_ARG(const Plasma::QueryMatch *, &match)
)) {
return mimeData;
if (runner) {
return runner->mimeDataForMatch(match);
}
return 0;