remove appletMimeType()
addContainment becomes createContainment
This commit is contained in:
parent
f4de55af67
commit
585c1ec21e
@ -42,7 +42,7 @@ PlasmaKPartCorona::PlasmaKPartCorona(QObject *parent)
|
||||
void PlasmaKPartCorona::loadDefaultLayout()
|
||||
{
|
||||
// used to force a save into the config file
|
||||
Plasma::Containment *c = addContainment(QString());
|
||||
Plasma::Containment *c = createContainment(QString());
|
||||
|
||||
if (!c) {
|
||||
// do some error reporting?
|
||||
|
@ -75,16 +75,6 @@ Plasma::Package Corona::package() const
|
||||
return d->package;
|
||||
}
|
||||
|
||||
void Corona::setAppletMimeType(const QString &type)
|
||||
{
|
||||
d->mimetype = type;
|
||||
}
|
||||
|
||||
QString Corona::appletMimeType()
|
||||
{
|
||||
return d->mimetype;
|
||||
}
|
||||
|
||||
void Corona::setDefaultContainmentPlugin(const QString &name)
|
||||
{
|
||||
// we could check if it is in:
|
||||
@ -257,7 +247,7 @@ KSharedConfigPtr Corona::config() const
|
||||
return d->config;
|
||||
}
|
||||
|
||||
Containment *Corona::addContainment(const QString &name, const QVariantList &args)
|
||||
Containment *Corona::createContainment(const QString &name, const QVariantList &args)
|
||||
{
|
||||
if (d->immutability == Mutable) {
|
||||
return d->addContainment(name, args, 0);
|
||||
@ -396,7 +386,6 @@ QHash<QString, QString> Corona::defaultContainmentActionsPlugins(ContainmentType
|
||||
CoronaPrivate::CoronaPrivate(Corona *corona)
|
||||
: q(corona),
|
||||
immutability(Mutable),
|
||||
mimetype("text/x-plasmoidservicename"),
|
||||
defaultContainmentPlugin("desktop"),
|
||||
config(0),
|
||||
configSyncTimer(new QTimer(corona)),
|
||||
|
@ -61,17 +61,6 @@ public:
|
||||
**/
|
||||
Plasma::Package package() const;
|
||||
|
||||
/**
|
||||
* Sets the mimetype of Drag/Drop items. Default is
|
||||
* text/x-plasmoidservicename
|
||||
*/
|
||||
void setAppletMimeType(const QString &mimetype);
|
||||
|
||||
/**
|
||||
* The current mime type of Drag/Drop items.
|
||||
*/
|
||||
QString appletMimeType();
|
||||
|
||||
/**
|
||||
* @return the default containment plugin type
|
||||
* @since 4.7
|
||||
@ -103,7 +92,7 @@ public:
|
||||
* when widgets are locked, or if the requested containment plugin can not be located
|
||||
* or successfully loaded.
|
||||
*/
|
||||
Containment *addContainment(const QString &name, const QVariantList &args = QVariantList());
|
||||
Containment *createContainment(const QString &name, const QVariantList &args = QVariantList());
|
||||
|
||||
/**
|
||||
* Returns the Containment, if any, for a given physical screen and desktop
|
||||
|
@ -56,7 +56,6 @@ public:
|
||||
Corona *q;
|
||||
Package package;
|
||||
ImmutabilityType immutability;
|
||||
QString mimetype;
|
||||
QString configName;
|
||||
QString defaultContainmentPlugin;
|
||||
KSharedConfigPtr config;
|
||||
|
@ -53,7 +53,7 @@ DesktopCorona::~DesktopCorona()
|
||||
|
||||
void DesktopCorona::loadDefaultLayout()
|
||||
{
|
||||
Plasma::Containment *cont = addContainment("org.kde.testcontainment");
|
||||
Plasma::Containment *cont = createContainment("org.kde.testcontainment");
|
||||
cont->setScreen(0);
|
||||
qDebug() << containmentForScreen(0);
|
||||
Plasma::Applet *appl = cont->createApplet("org.kde.testapplet");
|
||||
@ -118,7 +118,7 @@ void DesktopCorona::checkDesktop(/*Activity *activity,*/ bool signalWhenExists,
|
||||
|
||||
//TODO: remove following when activities are restored
|
||||
if (!c) {
|
||||
c = addContainment("desktop");
|
||||
c = createContainment("desktop");
|
||||
}
|
||||
|
||||
if (!c) {
|
||||
|
Loading…
Reference in New Issue
Block a user