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()) { if (!event->isAccepted()) {
foreach (const QString &format, formats) { foreach (const QString &format, formats) {
KPluginInfo::List wallpaperList = Wallpaper::listWallpaperInfoForMimetype(format); KPluginInfo::List wallpaperList = Wallpaper::listWallpaperInfoForMimeType(format);
if (!wallpaperList.isEmpty()) { if (!wallpaperList.isEmpty()) {
event->setAccepted(true); event->setAccepted(true);
break; break;

View File

@ -1,3 +1,3 @@
[Project] [Project]
Manager=KDevCMakeManager 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)) { if (wallpaper && wallpaper->supportsMimetype(mimeType)) {
wallpaperList << wallpaper->d->wallpaperDescription; wallpaperList << wallpaper->d->wallpaperDescription;
} else { } 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); 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()) {

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) * @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());
/** /**
@ -554,3 +554,4 @@ K_EXPORT_PLUGIN(factory("plasma_wallpaper_" #libname)) \
K_EXPORT_PLUGIN_VERSION(PLASMA_VERSION) K_EXPORT_PLUGIN_VERSION(PLASMA_VERSION)
#endif // multiple inclusion guard #endif // multiple inclusion guard