mimetype -> MimeType

This commit is contained in:
Aaron Seigo 2011-05-06 12:23:42 +02:00
parent 15dbd12daf
commit 5aa1e5865b
2 changed files with 5 additions and 5 deletions

View File

@ -159,9 +159,9 @@ KPluginInfo::List Wallpaper::listWallpaperInfo(const QString &formFactor)
return KPluginInfo::fromServices(offers); return KPluginInfo::fromServices(offers);
} }
KPluginInfo::List Wallpaper::listWallpaperInfoForMimetype(const QString &mimetype, const QString &formFactor) KPluginInfo::List Wallpaper::listWallpaperInfoForMimetype(const QString &mimeType, const QString &formFactor)
{ {
QString constraint = QString("'%1' in [X-Plasma-DropMimeTypes]").arg(mimetype); QString constraint = QString("'%1' in [X-Plasma-DropMimeTypes]").arg(mimeType);
if (!formFactor.isEmpty()) { if (!formFactor.isEmpty()) {
constraint.append("[X-Plasma-FormFactors] ~~ '").append(formFactor).append("'"); constraint.append("[X-Plasma-FormFactors] ~~ '").append(formFactor).append("'");
} }

View File

@ -103,12 +103,12 @@ class PLASMA_EXPORT Wallpaper : public QObject
static KPluginInfo::List listWallpaperInfo(const QString &formFactor = QString()); static KPluginInfo::List listWallpaperInfo(const QString &formFactor = QString());
/** /**
* Returns a list of all known wallpapers that can accept the given mimetype * Returns a list of all known wallpapers that can accept the given MimeType
* @arg mimetype the mimetype to search for * @arg mimeType the mimeType to search for
* @arg formFactor the format of the wallpaper being search for (e.g. desktop) * @arg formFactor the format of the wallpaper being search for (e.g. desktop)
* @return list of wallpapers * @return list of wallpapers
*/ */
static KPluginInfo::List listWallpaperInfoForMimetype(const QString &mimetype, static KPluginInfo::List listWallpaperInfoForMimetype(const QString &mimeType,
const QString &formFactor = QString()); const QString &formFactor = QString());
/** /**