Some applet mustn't be move (for example desktop applets)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=693187
This commit is contained in:
parent
2120758983
commit
e94eba8882
13
applet.cpp
13
applet.cpp
@ -65,7 +65,8 @@ public:
|
||||
scriptEngine(0),
|
||||
immutable(false),
|
||||
hasConfigurationInterface(false),
|
||||
failed(false)
|
||||
failed(false),
|
||||
canMove(true)
|
||||
{
|
||||
if (appletId == 0) {
|
||||
appletId = nextId();
|
||||
@ -259,6 +260,7 @@ public:
|
||||
bool immutable : 1;
|
||||
bool hasConfigurationInterface : 1;
|
||||
bool failed : 1;
|
||||
bool canMove : 1;
|
||||
};
|
||||
|
||||
uint Applet::Private::s_maxAppletId = 0;
|
||||
@ -757,6 +759,15 @@ void Applet::setLockApplet(bool lock)
|
||||
slotLockApplet(lock);
|
||||
}
|
||||
|
||||
bool Applet::canBeMoved() const
|
||||
{
|
||||
return d->canMove;
|
||||
}
|
||||
|
||||
void Applet::setCanBeMoved( bool move)
|
||||
{
|
||||
d->canMove = move;
|
||||
}
|
||||
|
||||
} // Plasma namespace
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user