no longer provide access to the package from the class, let Package do that; adapt to Package merge
This commit is contained in:
parent
bbc569740e
commit
1dde80056b
@ -42,8 +42,6 @@
|
||||
namespace Plasma
|
||||
{
|
||||
|
||||
PackageStructure::Ptr ContainmentActionsPrivate::s_packageStructure(0);
|
||||
|
||||
ContainmentActions::ContainmentActions(QObject * parentObject)
|
||||
: d(new ContainmentActionsPrivate(KService::serviceByStorageId(QString()), this))
|
||||
{
|
||||
@ -119,15 +117,6 @@ ContainmentActions *ContainmentActions::load(Containment *parent, const KPluginI
|
||||
return load(parent, info.pluginName(), args);
|
||||
}
|
||||
|
||||
PackageStructure::Ptr ContainmentActions::packageStructure()
|
||||
{
|
||||
if (!ContainmentActionsPrivate::s_packageStructure) {
|
||||
ContainmentActionsPrivate::s_packageStructure = new ContainmentActionsPackage();
|
||||
}
|
||||
|
||||
return ContainmentActionsPrivate::s_packageStructure;
|
||||
}
|
||||
|
||||
Containment *ContainmentActions::containment()
|
||||
{
|
||||
if (d->containment) {
|
||||
|
@ -25,7 +25,6 @@
|
||||
#include <kplugininfo.h>
|
||||
|
||||
#include <plasma/plasma.h>
|
||||
#include <plasma/packagestructure.h>
|
||||
#include <plasma/version.h>
|
||||
|
||||
class QAction;
|
||||
@ -102,11 +101,6 @@ class PLASMA_EXPORT ContainmentActions : public QObject
|
||||
**/
|
||||
static ContainmentActions *load(Containment *parent, const KPluginInfo &info, const QVariantList &args = QVariantList());
|
||||
|
||||
/**
|
||||
* Returns the Package specialization for containmentactions.
|
||||
*/
|
||||
static PackageStructure::Ptr packageStructure();
|
||||
|
||||
/**
|
||||
* Returns the user-visible name for the containmentactions, as specified in the
|
||||
* .desktop file.
|
||||
|
@ -37,8 +37,6 @@ public:
|
||||
{
|
||||
};
|
||||
|
||||
static PackageStructure::Ptr s_packageStructure;
|
||||
|
||||
ContainmentActions *q;
|
||||
KPluginInfo containmentActionsDescription;
|
||||
Package *package;
|
||||
|
Loading…
Reference in New Issue
Block a user