Also change the other direct QGraphicsItem calls to Applet calls in contextMenuEvent()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753476
This commit is contained in:
parent
cf71ae2c36
commit
95f836fd2e
@ -238,7 +238,7 @@ void Containment::contextMenuEvent(QGraphicsSceneContextMenuEvent* event)
|
||||
if (!applet) {
|
||||
if (!scene() || (static_cast<Corona*>(scene())->isImmutable() && !KAuthorized::authorizeKAction("unlock_desktop"))) {
|
||||
//kDebug() << "immutability";
|
||||
QGraphicsItem::contextMenuEvent(event);
|
||||
Applet::contextMenuEvent(event);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -248,7 +248,7 @@ void Containment::contextMenuEvent(QGraphicsSceneContextMenuEvent* event)
|
||||
|
||||
if (actions.count() < 1) {
|
||||
//kDebug() << "no applet, but no actions";
|
||||
QGraphicsItem::contextMenuEvent(event);
|
||||
Applet::contextMenuEvent(event);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -288,7 +288,7 @@ void Containment::contextMenuEvent(QGraphicsSceneContextMenuEvent* event)
|
||||
}
|
||||
|
||||
if (!hasEntries) {
|
||||
QGraphicsItem::contextMenuEvent(event);
|
||||
Applet::contextMenuEvent(event);
|
||||
kDebug() << "no entries";
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user