call the import org.kde.plasma.plasmoid
This commit is contained in:
parent
2a0384c3c7
commit
be4c13e627
@ -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>();
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user