Commit fe54adf5 authored by Marco Martin's avatar Marco Martin

port to Package::fileUrl

Summary: makes things work when packages are in resources

Test Plan: kscreenlocker works again

Reviewers: #plasma, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D9180
parent 98c04be0
......@@ -180,7 +180,7 @@ void UnlockApp::initialize()
package.setPath(KScreenSaverSettings::theme());
}
m_mainQmlPath = QUrl::fromLocalFile(package.filePath("lockscreenmainscript"));
m_mainQmlPath = package.fileUrl("lockscreenmainscript");
m_wallpaperIntegration->setConfig(KScreenSaverSettings::self()->sharedConfig());
m_wallpaperIntegration->setPluginName(KScreenSaverSettings::self()->wallpaperPlugin());
......@@ -505,7 +505,7 @@ void UnlockApp::setTheme(const QString &theme)
KPackage::Package package = KPackage::PackageLoader::self()->loadPackage(QStringLiteral("Plasma/LookAndFeel"));
package.setPath(m_packageName);
m_mainQmlPath = QUrl::fromLocalFile(package.filePath("lockscreenmainscript"));
m_mainQmlPath = package.fileUrl("lockscreenmainscript");
}
void UnlockApp::setImmediateLock(bool immediate)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment