add a wallpaper package definition
svn path=/trunk/KDE/kdelibs/; revision=948063
This commit is contained in:
parent
de4602c113
commit
e309bf2da3
@ -154,6 +154,18 @@ ThemePackage::ThemePackage(QObject *parent)
|
||||
setDefaultMimetypes(mimetypes);
|
||||
}
|
||||
|
||||
WallpaperPackage::WallpaperPackage(QObject *parent)
|
||||
: PackageStructure(parent, "Background")
|
||||
{
|
||||
QStringList mimetypes;
|
||||
mimetypes << "image/svg" << "image/png" << "image/jpeg" << "image/jpg";
|
||||
setDefaultMimetypes(mimetypes);
|
||||
|
||||
addDirectoryDefinition("images", "images", i18n("Images"));
|
||||
addFileDefinition("screenshot", "screenshot.png", i18n("Screenshot"));
|
||||
setAllowExternalPaths(true);
|
||||
}
|
||||
|
||||
} // namespace Plasma
|
||||
|
||||
#include "packages_p.moc"
|
||||
|
@ -44,6 +44,14 @@ public:
|
||||
explicit ThemePackage(QObject *parent = 0);
|
||||
};
|
||||
|
||||
class WallpaperPackage : public PackageStructure
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit WallpaperPackage(QObject *parent = 0);
|
||||
};
|
||||
|
||||
PackageStructure::Ptr defaultPackageStructure(ComponentType type);
|
||||
|
||||
} // namespace Plasma
|
||||
|
Loading…
Reference in New Issue
Block a user