Add temp workaround to avoid black squares in main context menu

BUG: 331809
This commit is contained in:
David Edmundson 2014-03-10 17:50:50 +01:00
parent a1dce4bb86
commit effb5e8ad1

View File

@ -643,6 +643,12 @@ void ContainmentInterface::mouseReleaseEvent(QMouseEvent *event)
} else {
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());
event->accept();
}