From effb5e8ad15d17d2ecf1b11f0be77f4671018bd5 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Mon, 10 Mar 2014 17:50:50 +0100 Subject: [PATCH] Add temp workaround to avoid black squares in main context menu BUG: 331809 --- src/scriptengines/qml/plasmoid/containmentinterface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/scriptengines/qml/plasmoid/containmentinterface.cpp b/src/scriptengines/qml/plasmoid/containmentinterface.cpp index 580fbbad5..f4e75e69b 100644 --- a/src/scriptengines/qml/plasmoid/containmentinterface.cpp +++ b/src/scriptengines/qml/plasmoid/containmentinterface.cpp @@ -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(); }