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 (!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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user