API change: listWallpaperInfoForMimetype listWallpaperInfoForMimeType

(capital T instead of t, in line with mimeType everywhere else)
This commit is contained in:
Sebastian Kügler 2012-09-23 01:13:16 +02:00
parent 72c4428b03
commit 885ca80083
5 changed files with 6 additions and 5 deletions

View File

@ -890,7 +890,7 @@ void Containment::dragEnterEvent(QGraphicsSceneDragDropEvent *event)
if (!event->isAccepted()) {
foreach (const QString &format, formats) {
KPluginInfo::List wallpaperList = Wallpaper::listWallpaperInfoForMimetype(format);
KPluginInfo::List wallpaperList = Wallpaper::listWallpaperInfoForMimeType(format);
if (!wallpaperList.isEmpty()) {
event->setAccepted(true);
break;

View File

@ -1,3 +1,3 @@
[Project]
Manager=KDevCMakeManager
Name=plasmalibs
Name=plasmaframeworks5

View File

@ -643,7 +643,7 @@ void ContainmentPrivate::mimeTypeRetrieved(KIO::Job *job, const QString &mimeTyp
if (wallpaper && wallpaper->supportsMimetype(mimeType)) {
wallpaperList << wallpaper->d->wallpaperDescription;
} else {
wallpaperList = Wallpaper::listWallpaperInfoForMimetype(mimeType);
wallpaperList = Wallpaper::listWallpaperInfoForMimeType(mimeType);
}
}

View File

@ -144,7 +144,7 @@ KPluginInfo::List Wallpaper::listWallpaperInfo(const QString &formFactor)
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);
if (!formFactor.isEmpty()) {

View File

@ -101,7 +101,7 @@ class PLASMA_EXPORT Wallpaper : public QObject
* @arg formFactor the format of the wallpaper being search for (e.g. desktop)
* @return list of wallpapers
*/
static KPluginInfo::List listWallpaperInfoForMimetype(const QString &mimeType,
static KPluginInfo::List listWallpaperInfoForMimeType(const QString &mimeType,
const QString &formFactor = QString());
/**
@ -554,3 +554,4 @@ K_EXPORT_PLUGIN(factory("plasma_wallpaper_" #libname)) \
K_EXPORT_PLUGIN_VERSION(PLASMA_VERSION)
#endif // multiple inclusion guard