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:
Laurent Montel 2007-07-27 11:42:43 +00:00
parent 2120758983
commit e94eba8882
2 changed files with 15 additions and 1 deletions

View File

@ -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

View File

@ -389,6 +389,9 @@ class PLASMA_EXPORT Applet : public QObject, public Widget
void setLockApplet(bool lock);
bool canBeMoved() const;
void setCanBeMoved( bool move);
Q_SIGNALS:
/**