take corona immutability into consideration as well
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=781758
This commit is contained in:
parent
054f4bd2f9
commit
6fc81a860f
@ -589,12 +589,13 @@ bool Applet::isImmutable() const
|
||||
{
|
||||
return d->immutable || d->kioskImmutable ||
|
||||
(containment() && containment()->isImmutable()) ||
|
||||
(dynamic_cast<Corona*>( scene() ) && static_cast<Corona*>(scene())->isImmutable());
|
||||
(dynamic_cast<Corona*>(scene()) && static_cast<Corona*>(scene())->isImmutable());
|
||||
}
|
||||
|
||||
bool Applet::isKioskImmutable() const
|
||||
{
|
||||
return d->kioskImmutable;
|
||||
Corona *c = dynamic_cast<Corona*>(scene());
|
||||
return d->kioskImmutable || (c && c->isKioskImmutable());
|
||||
}
|
||||
|
||||
void Applet::setImmutable(bool immutable)
|
||||
|
Loading…
Reference in New Issue
Block a user