--deprecatedApiUsage;
svn path=/trunk/KDE/kdelibs/; revision=1206617
This commit is contained in:
parent
8ba74ed014
commit
c549c85181
@ -251,12 +251,12 @@ void WallpaperPackage::pathChanged()
|
|||||||
|
|
||||||
m_fullPackage = info.isDir();
|
m_fullPackage = info.isDir();
|
||||||
if (m_fullPackage) {
|
if (m_fullPackage) {
|
||||||
setContentsPrefix("contents/");
|
setContentsPrefixPaths(QStringList() << "contents/");
|
||||||
findBestPaper();
|
findBestPaper();
|
||||||
} else {
|
} else {
|
||||||
// dirty trick to support having a file passed in instead of a directory
|
// dirty trick to support having a file passed in instead of a directory
|
||||||
addFileDefinition("preferred", info.fileName(), i18n("Recommended wallpaper file"));
|
addFileDefinition("preferred", info.fileName(), i18n("Recommended wallpaper file"));
|
||||||
setContentsPrefix(QString());
|
setContentsPrefixPaths(QStringList());
|
||||||
//kDebug() << "changing" << path() << "to" << info.path();
|
//kDebug() << "changing" << path() << "to" << info.path();
|
||||||
setPath(info.path());
|
setPath(info.path());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user