known...() -> list...()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800810
This commit is contained in:
parent
175cf065e7
commit
ced9f04d55
@ -1118,8 +1118,8 @@ QPoint Containment::effectiveScreenPos() const
|
||||
}
|
||||
}
|
||||
|
||||
KPluginInfo::List Containment::knownContainments(const QString &category,
|
||||
const QString &parentApp)
|
||||
KPluginInfo::List Containment::listContainments(const QString &category,
|
||||
const QString &parentApp)
|
||||
{
|
||||
QString constraint;
|
||||
|
||||
@ -1145,17 +1145,17 @@ KPluginInfo::List Containment::knownContainments(const QString &category,
|
||||
return KPluginInfo::fromServices(offers);
|
||||
}
|
||||
|
||||
KPluginInfo::List Containment::knownContainmentsForMimetype(const QString &mimetype)
|
||||
KPluginInfo::List Containment::listContainmentsForMimetype(const QString &mimetype)
|
||||
{
|
||||
QString constraint = QString("'%1' in MimeTypes").arg(mimetype);
|
||||
//kDebug() << "knownContainmentsForMimetype with" << mimetype << constraint;
|
||||
//kDebug() << mimetype << constraint;
|
||||
KService::List offers = KServiceTypeTrader::self()->query("Plasma/Containment", constraint);
|
||||
return KPluginInfo::fromServices(offers);
|
||||
}
|
||||
|
||||
void Containment::dropEvent(QGraphicsSceneDragDropEvent *event)
|
||||
{
|
||||
//kDebug() << "drop event:" << event->mimeData()->text();
|
||||
//kDebug() << event->mimeData()->text();
|
||||
|
||||
QString mimetype(static_cast<Corona*>(scene())->appletMimeType());
|
||||
|
||||
|
@ -160,15 +160,15 @@ class PLASMA_EXPORT Containment : public Applet
|
||||
* registered to an application.
|
||||
* @return list of applets
|
||||
**/
|
||||
static KPluginInfo::List knownContainments(const QString &category = QString(),
|
||||
const QString &parentApp = QString());
|
||||
static KPluginInfo::List listContainments(const QString &category = QString(),
|
||||
const QString &parentApp = QString());
|
||||
|
||||
/**
|
||||
* Returns a list of all known applets associated with a certain mimetype
|
||||
*
|
||||
* @return list of applets
|
||||
**/
|
||||
static KPluginInfo::List knownContainmentsForMimetype(const QString &mimetype);
|
||||
static KPluginInfo::List listContainmentsForMimetype(const QString &mimetype);
|
||||
|
||||
/**
|
||||
* Adds an applet to this Containment
|
||||
|
Loading…
Reference in New Issue
Block a user