add a configmodel item to the package
This commit is contained in:
parent
d1c4de17d8
commit
e9c25137e3
@ -109,7 +109,7 @@ void PlasmoidPackage::initPackage(Package *package)
|
||||
package->setServicePrefix("plasma-applet-");
|
||||
package->setDefaultPackageRoot("plasma/plasmoids/");
|
||||
|
||||
package->addFileDefinition("mainconfigui", "ui/config.ui", i18n("Main Config UI File"));
|
||||
package->addFileDefinition("configmodel", "ui/config.qml", i18n("Configuration UI pages model"));
|
||||
package->addFileDefinition("mainconfigxml", "config/main.xml", i18n("Configuration XML file"));
|
||||
}
|
||||
|
||||
|
@ -259,7 +259,7 @@ ConfigView::ConfigView(AppletInterface *interface, QWindow *parent)
|
||||
|
||||
|
||||
//config model local of the applet
|
||||
QQmlComponent *component = new QQmlComponent(engine(), QUrl::fromLocalFile(m_appletInterface->applet()->package().filePath("config", "config.qml")), this);
|
||||
QQmlComponent *component = new QQmlComponent(engine(), QUrl::fromLocalFile(m_appletInterface->applet()->package().filePath("configmodel")), this);
|
||||
QObject *object = component->create(engine()->rootContext());
|
||||
m_configModel = qobject_cast<ConfigModel *>(object);
|
||||
if (m_configModel) {
|
||||
|
Loading…
Reference in New Issue
Block a user