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:
Jason Stubbs 2007-12-27 15:19:01 +00:00
parent cf71ae2c36
commit 95f836fd2e

View File

@ -238,7 +238,7 @@ void Containment::contextMenuEvent(QGraphicsSceneContextMenuEvent* event)
if (!applet) { if (!applet) {
if (!scene() || (static_cast<Corona*>(scene())->isImmutable() && !KAuthorized::authorizeKAction("unlock_desktop"))) { if (!scene() || (static_cast<Corona*>(scene())->isImmutable() && !KAuthorized::authorizeKAction("unlock_desktop"))) {
//kDebug() << "immutability"; //kDebug() << "immutability";
QGraphicsItem::contextMenuEvent(event); Applet::contextMenuEvent(event);
return; return;
} }
@ -248,7 +248,7 @@ void Containment::contextMenuEvent(QGraphicsSceneContextMenuEvent* event)
if (actions.count() < 1) { if (actions.count() < 1) {
//kDebug() << "no applet, but no actions"; //kDebug() << "no applet, but no actions";
QGraphicsItem::contextMenuEvent(event); Applet::contextMenuEvent(event);
return; return;
} }
@ -288,7 +288,7 @@ void Containment::contextMenuEvent(QGraphicsSceneContextMenuEvent* event)
} }
if (!hasEntries) { if (!hasEntries) {
QGraphicsItem::contextMenuEvent(event); Applet::contextMenuEvent(event);
kDebug() << "no entries"; kDebug() << "no entries";
return; return;
} }