reenable KUrl bindings

This commit is contained in:
Marco Martin 2012-09-04 14:12:09 +02:00
parent 3d48a89111
commit e5316bf6bc
2 changed files with 5 additions and 0 deletions

View File

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

View File

@ -451,6 +451,10 @@ void DeclarativeAppletScript::setupObjects()
ByteArrayClass *baClass = new ByteArrayClass(m_engine);
global.setProperty("ByteArray", baClass->constructor());
// Add stuff from KDE libs
qScriptRegisterSequenceMetaType<KUrl::List>(m_engine);
global.setProperty("Url", constructKUrlClass(m_engine));
// Add stuff from Plasma
global.setProperty("Svg", m_engine->newFunction(DeclarativeAppletScript::newPlasmaSvg));
global.setProperty("FrameSvg", m_engine->newFunction(DeclarativeAppletScript::newPlasmaFrameSvg));