no more d->containment
svn path=/trunk/KDE/kdelibs/; revision=1014483
This commit is contained in:
parent
70f4e5aee6
commit
f9317c11e6
@ -105,15 +105,12 @@ ContainmentActions *ContainmentActions::load(Containment *parent, const QString
|
||||
QVariantList allArgs;
|
||||
allArgs << offer->storageId() << args;
|
||||
QString error;
|
||||
ContainmentActions *containmentActions = offer->createInstance<Plasma::ContainmentActions>(0, allArgs, &error);
|
||||
ContainmentActions *containmentActions = offer->createInstance<Plasma::ContainmentActions>(parent, allArgs, &error);
|
||||
|
||||
if (!containmentActions) {
|
||||
kDebug() << "Couldn't load containmentActions \"" << containmentActionsName << "\"! reason given: " << error;
|
||||
}
|
||||
|
||||
containmentActions->setParent(parent);
|
||||
containmentActions->d->containment = parent;
|
||||
|
||||
return containmentActions;
|
||||
}
|
||||
|
||||
@ -136,7 +133,7 @@ PackageStructure::Ptr ContainmentActions::packageStructure()
|
||||
|
||||
Containment *ContainmentActions::containment()
|
||||
{
|
||||
return d->containment;
|
||||
return static_cast<Containment*>(parent());
|
||||
}
|
||||
|
||||
QString ContainmentActions::name() const
|
||||
|
@ -30,7 +30,6 @@ class ContainmentActionsPrivate : public DataEngineConsumer
|
||||
public:
|
||||
ContainmentActionsPrivate(KService::Ptr service, ContainmentActions *containmentActions) :
|
||||
q(containmentActions),
|
||||
containment(0),
|
||||
containmentActionsDescription(service),
|
||||
initialized(false),
|
||||
needsConfig(false),
|
||||
@ -41,7 +40,6 @@ public:
|
||||
static PackageStructure::Ptr s_packageStructure;
|
||||
|
||||
ContainmentActions *q;
|
||||
Containment *containment;
|
||||
KPluginInfo containmentActionsDescription;
|
||||
Package *package;
|
||||
KServiceAction mode;
|
||||
|
Loading…
Reference in New Issue
Block a user