forwardport 1101692: Fix compilation error with Qt-4.6.0,

plasma/svgwidget.moc:53: error: 'staticMetaObject' is not a member of 'Plasma'
Apparently moc is more clever in Qt-4.6.3, but anyway http://bugreports.qt.nokia.com/browse/QTBUG-2151 is right,
the property is only usable if declared with Q_DECLARE_METATYPE, isn't it?

svn path=/trunk/KDE/kdelibs/; revision=1101693
This commit is contained in:
David Faure 2010-03-10 16:38:54 +00:00
parent 60d5462c3f
commit c093832d1f

View File

@ -28,10 +28,14 @@
namespace Plasma
{
class Svg;
class SvgWidgetPrivate;
}
Q_DECLARE_METATYPE(Plasma::Svg*)
namespace Plasma
{
class PLASMA_EXPORT SvgWidget : public QGraphicsWidget
{
Q_OBJECT