Add temp workaround to avoid black squares in main context menu
BUG: 331809
This commit is contained in:
parent
a1dce4bb86
commit
effb5e8ad1
@ -643,6 +643,12 @@ void ContainmentInterface::mouseReleaseEvent(QMouseEvent *event)
|
|||||||
} else {
|
} else {
|
||||||
addContainmentActions(desktopMenu, event);
|
addContainmentActions(desktopMenu, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//this is a workaround where Qt now creates the menu widget
|
||||||
|
//in .exec before oxygen can polish it and set the following attribute
|
||||||
|
desktopMenu.setAttribute( Qt::WA_TranslucentBackground );
|
||||||
|
//end workaround
|
||||||
|
|
||||||
desktopMenu.exec(event->globalPos());
|
desktopMenu.exec(event->globalPos());
|
||||||
event->accept();
|
event->accept();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user