API change: listWallpaperInfoForMimetype listWallpaperInfoForMimeType
(capital T instead of t, in line with mimeType everywhere else)
This commit is contained in:
parent
72c4428b03
commit
885ca80083
@ -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;
|
||||
|
@ -1,3 +1,3 @@
|
||||
[Project]
|
||||
Manager=KDevCMakeManager
|
||||
Name=plasmalibs
|
||||
Name=plasmaframeworks5
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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()) {
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user