change of heart after trying a few more things out: make containment type something that can be externally set.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742774
This commit is contained in:
parent
f73b97780a
commit
22893bd077
@ -59,7 +59,8 @@ public:
|
||||
location(Floating),
|
||||
screen(-1),
|
||||
immutable(false),
|
||||
toolbox(0)
|
||||
toolbox(0),
|
||||
type(Containment::DesktopContainment)
|
||||
{
|
||||
}
|
||||
|
||||
@ -76,6 +77,7 @@ public:
|
||||
int screen;
|
||||
bool immutable;
|
||||
DesktopToolbox *toolbox;
|
||||
Containment::Type type;
|
||||
};
|
||||
|
||||
Containment::Containment(QGraphicsItem* parent,
|
||||
@ -162,7 +164,12 @@ void Containment::containmentConstraintsUpdated(Plasma::Constraints constraints)
|
||||
|
||||
Containment::Type Containment::containmentType() const
|
||||
{
|
||||
return DesktopContainment;
|
||||
return d->type;
|
||||
}
|
||||
|
||||
void Containment::setContainmentType(Containment::Type type)
|
||||
{
|
||||
d->type = type;
|
||||
}
|
||||
|
||||
Corona* Containment::corona() const
|
||||
|
@ -103,7 +103,12 @@ class PLASMA_EXPORT Containment : public Applet
|
||||
/**
|
||||
* Returns the type of containment
|
||||
*/
|
||||
virtual Type containmentType() const;
|
||||
Type containmentType() const;
|
||||
|
||||
/**
|
||||
* Sets the type of this containment.
|
||||
*/
|
||||
void setContainmentType(Containment::Type type);
|
||||
|
||||
/**
|
||||
* Returns the current form factor the applets in this Containment
|
||||
|
Loading…
Reference in New Issue
Block a user