From dc7ce0a224e70b785cdae7445a26aae412e55055 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 12 Jul 2018 08:14:38 +0200 Subject: WebView: fix context menu transparency with Plasma --- CMakeLists.txt | 2 +- src/webengine/webview.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a123603..64b5fa5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ option(Plasma "Enable some fancy effects on Plasma" OFF) # Libraries find_package(Qt5 COMPONENTS Core Widgets Concurrent REQUIRED) -find_package(Qt5 5.10.1 COMPONENTS WebEngineWidgets REQUIRED) +find_package(Qt5 5.11.0 COMPONENTS WebEngineWidgets REQUIRED) find_package(Boost COMPONENTS program_options REQUIRED) if(Plasma) diff --git a/src/webengine/webview.cpp b/src/webengine/webview.cpp index b7258ea..c286dbf 100644 --- a/src/webengine/webview.cpp +++ b/src/webengine/webview.cpp @@ -212,7 +212,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) } menu->setMinimumWidth(250); - menu->popup(event->globalPos()); + menu->exec(event->globalPos()); } void WebView::triggerViewAction(WebView::ViewAction action) -- cgit v1.2.1