[amarok] src/context/scriptengine/javascript: The Q_DECLARE_METATYPE(DataEngine*) was added to the "Plasma/Service" header.
Michael Jansen
kde at michael-jansen.biz
Sun Jun 5 22:43:05 CEST 2011
Git commit edd2377b84f97da52cb8e5fa714a9ff9f8ae2a0b by Michael Jansen.
Committed on 05/06/2011 at 22:26.
Pushed by mjansen into branch 'master'.
The Q_DECLARE_METATYPE(DataEngine*) was added to the "Plasma/Service" header.
Fix
error: redefinition of 'struct QMetaTypeId<Plasma::Service*>'
error: redefinition of 'struct QMetaTypeId<Plasma::ServiceJob*
This "Plasma/Service" change was a source incompatible change but i leave it to
more capable minds to consider if it is acceptable. I have no clue.
CCMAIL: kde-devel at kde.org
CCMAIL: amarok-devel at kde.org
CCMAIL: aseigo at kde.org
M +3 -1 src/context/scriptengine/javascript/bind_dataengine.h
http://commits.kde.org/amarok/edd2377b84f97da52cb8e5fa714a9ff9f8ae2a0b
diff --git a/src/context/scriptengine/javascript/bind_dataengine.h b/src/context/scriptengine/javascript/bind_dataengine.h
index 93b1e87..5e6d490 100644
--- a/src/context/scriptengine/javascript/bind_dataengine.h
+++ b/src/context/scriptengine/javascript/bind_dataengine.h
@@ -26,11 +26,13 @@
using namespace Plasma;
-#if !KDE_IS_VERSION(4, 4, 76)
+#if !KDE_IS_VERSION(4, 4, 76)
Q_DECLARE_METATYPE(DataEngine*)
#endif
+#if !KDE_VERSION(4, 6, 80)
Q_DECLARE_METATYPE(Service*)
Q_DECLARE_METATYPE(ServiceJob*)
+#endif
Q_DECLARE_METATYPE(QVariant)
Q_DECLARE_METATYPE(DataEngine::Dict)
Q_DECLARE_METATYPE(DataEngine::Data)
More information about the Amarok-devel
mailing list