diff --git a/src/plasma/private/packages.cpp b/src/plasma/private/packages.cpp index 436a19ba4..bcfa3ae38 100644 --- a/src/plasma/private/packages.cpp +++ b/src/plasma/private/packages.cpp @@ -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")); } diff --git a/src/scriptengines/qml/plasmoid/configview.cpp b/src/scriptengines/qml/plasmoid/configview.cpp index 072e74c70..bbd4453f2 100644 --- a/src/scriptengines/qml/plasmoid/configview.cpp +++ b/src/scriptengines/qml/plasmoid/configview.cpp @@ -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(object); if (m_configModel) {