add QList<double> as the known types: the plotter needs it
svn path=/trunk/KDE/kdebase/runtime/; revision=1182468
This commit is contained in:
parent
724af8a44b
commit
65f7d021d1
@ -37,6 +37,7 @@ Q_DECLARE_METATYPE(Plasma::Extender*)
|
||||
Q_DECLARE_METATYPE(Plasma::VideoWidget::Controls)
|
||||
Q_DECLARE_METATYPE(Plasma::Svg*)
|
||||
Q_DECLARE_METATYPE(Qt::MouseButton)
|
||||
Q_DECLARE_METATYPE(QList<double>)
|
||||
|
||||
QScriptValue qScriptValueFromControls(QScriptEngine *engine, const Plasma::VideoWidget::Controls &controls)
|
||||
{
|
||||
@ -135,6 +136,7 @@ void registerSimpleAppletMetaTypes(QScriptEngine *engine)
|
||||
qScriptRegisterMetaType<QGraphicsWidget*>(engine, qScriptValueFromQGraphicsWidget, graphicsWidgetFromQScriptValue);
|
||||
qScriptRegisterMetaType<Plasma::Svg*>(engine, qScriptValueFromSvg, svgFromQScriptValue);
|
||||
|
||||
qScriptRegisterSequenceMetaType<QList<double> >(engine);
|
||||
qScriptRegisterMetaType<Plasma::Animation *>(engine, qScriptValueFromAnimation, abstractAnimationFromQScriptValue);
|
||||
qScriptRegisterMetaType<Plasma::Extender *>(engine, qScriptValueFromExtender, extenderFromQScriptValue);
|
||||
qScriptRegisterMetaType<Plasma::VideoWidget::Controls>(engine, qScriptValueFromControls, controlsFromScriptValue, QScriptValue());
|
||||
|
Loading…
Reference in New Issue
Block a user