reenable QPoint bindings

This commit is contained in:
Marco Martin 2012-09-18 12:02:27 +02:00
parent e1c4125ac8
commit 279d3727a5
2 changed files with 3 additions and 0 deletions

View File

@ -144,6 +144,7 @@ set(declarative_appletscript_SRCS
simplebindings/filedialogproxy.cpp simplebindings/filedialogproxy.cpp
simplebindings/qscriptbookkeeping.cpp simplebindings/qscriptbookkeeping.cpp
simplebindings/url.cpp simplebindings/url.cpp
simplebindings/point.cpp
) )
include_directories(${PHONON_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR}/common) include_directories(${PHONON_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR}/common)

View File

@ -64,6 +64,7 @@ K_EXPORT_PLASMA_APPLETSCRIPTENGINE(declarativeappletscript, DeclarativeAppletScr
QScriptValue constructIconClass(QScriptEngine *engine); QScriptValue constructIconClass(QScriptEngine *engine);
QScriptValue constructKUrlClass(QScriptEngine *engine); QScriptValue constructKUrlClass(QScriptEngine *engine);
QScriptValue constructQPointClass(QScriptEngine *engine);
void registerSimpleAppletMetaTypes(QScriptEngine *engine); void registerSimpleAppletMetaTypes(QScriptEngine *engine);
DeclarativeAppletScript::DeclarativeAppletScript(QObject *parent, const QVariantList &args) DeclarativeAppletScript::DeclarativeAppletScript(QObject *parent, const QVariantList &args)
: AbstractJsAppletScript(parent, args), : AbstractJsAppletScript(parent, args),
@ -449,6 +450,7 @@ void DeclarativeAppletScript::setupObjects()
//TODO: move to libkdeclarative? //TODO: move to libkdeclarative?
ByteArrayClass *baClass = new ByteArrayClass(m_engine); ByteArrayClass *baClass = new ByteArrayClass(m_engine);
global.setProperty("ByteArray", baClass->constructor()); global.setProperty("ByteArray", baClass->constructor());
global.setProperty("QPoint", constructQPointClass(m_engine));
// Add stuff from KDE libs // Add stuff from KDE libs
qScriptRegisterSequenceMetaType<KUrl::List>(m_engine); qScriptRegisterSequenceMetaType<KUrl::List>(m_engine);