From 2e5064ca2f4904d1203f7f1c97da3cd57aefdc8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=C4=8Cuki=C4=87?= Date: Sun, 21 Feb 2010 19:30:11 +0000 Subject: [PATCH] Changed method name svn path=/trunk/KDE/kdelibs/; revision=1093946 --- abstractrunner.cpp | 2 +- abstractrunner.h | 3 ++- runnermanager.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/abstractrunner.cpp b/abstractrunner.cpp index 029951fb4..34b6e7b73 100644 --- a/abstractrunner.cpp +++ b/abstractrunner.cpp @@ -185,7 +185,7 @@ void AbstractRunner::clearActions() d->actions.clear(); } -QMimeData * AbstractRunner::setupMimeDataForMatch(const QueryMatch *match) +QMimeData * AbstractRunner::mimeDataForMatch(const QueryMatch *match) { return 0; } diff --git a/abstractrunner.h b/abstractrunner.h index 8301eb12b..95a085a7f 100644 --- a/abstractrunner.h +++ b/abstractrunner.h @@ -447,8 +447,9 @@ class PLASMA_EXPORT AbstractRunner : public QObject /** * Reimplement this slot if you want your runner * to support serialization and drag and drop + * @since 4.5 */ - QMimeData * setupMimeDataForMatch(const Plasma::QueryMatch *match); + QMimeData * mimeDataForMatch(const Plasma::QueryMatch *match); private: friend class RunnerScript; diff --git a/runnermanager.cpp b/runnermanager.cpp index cca68b6e3..0be9d5f43 100644 --- a/runnermanager.cpp +++ b/runnermanager.cpp @@ -554,7 +554,7 @@ QMimeData * RunnerManager::mimeDataForMatch(const QueryMatch &match) const QMimeData * mimeData; if (runner && QMetaObject::invokeMethod( runner, - "setupMimeDataForMatch", Qt::DirectConnection, + "mimeDataForMatch", Qt::DirectConnection, Q_RETURN_ARG(QMimeData*, mimeData), Q_ARG(const Plasma::QueryMatch *, & match) )) {