Verified Commit c022e8ab authored by ivan tkachenko's avatar ivan tkachenko
Browse files

applet: Make "Profiles" menu Translucent

This code is copied straight from PlasmaComponents.2/Menu (QMenuProxy).
parent 6fcf7c88
Pipeline #231953 passed with stage
in 1 minute and 22 seconds
......@@ -322,6 +322,10 @@ QMenu *ListItemMenu::createMenu()
auto *menu = new QMenu();
menu->setAttribute(Qt::WA_DeleteOnClose);
// Breeze and Oxygen have rounded corners on menus. They set this attribute in polish()
// but at that time the underlying surface has already been created where setting this
// flag makes no difference anymore (Bug 385311)
menu->setAttribute(Qt::WA_TranslucentBackground);
connect(menu, &QMenu::aboutToHide, this, [this] {
setVisible(false);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment