call the import org.kde.plasma.plasmoid

This commit is contained in:
Marco Martin 2014-02-04 17:01:28 +01:00
parent 2a0384c3c7
commit be4c13e627
2 changed files with 3 additions and 3 deletions

View File

@ -55,9 +55,9 @@ DeclarativeAppletScript::DeclarativeAppletScript(QObject *parent, const QVariant
m_interface(0)
{
//qmlRegisterType<AppletInterface>();
qmlRegisterUncreatableType<AppletInterface>("org.kde.plasma.shell", 2, 0, "Plasmoid",
qmlRegisterUncreatableType<AppletInterface>("org.kde.plasma.plasmoid", 2, 0, "Plasmoid",
QLatin1String("Do not create objects of type Plasmoid"));
qmlRegisterUncreatableType<ContainmentInterface>("org.kde.plasma.shell", 2, 0, "Containment",
qmlRegisterUncreatableType<ContainmentInterface>("org.kde.plasma.plasmoid", 2, 0, "Containment",
QLatin1String("Do not create objects of type Containment"));
qmlRegisterType<KDeclarative::ConfigPropertyMap>();

View File

@ -151,6 +151,6 @@ for FS in `find $PWD -type f -name '*.qml'`; do
done
for FS in `find $PWD -type f -name '*main.qml'`; do
perl -p -i -e 's/QtQuick 2.0/QtQuick 2.0\nimport org.kde.plasma.shell 2.0/g' $FS
perl -p -i -e 's/QtQuick 2.0/QtQuick 2.0\nimport org.kde.plasma.plasmoid 2.0/g' $FS
done