diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-12 08:14:38 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-12 08:14:38 +0200 |
commit | dc7ce0a224e70b785cdae7445a26aae412e55055 (patch) | |
tree | 4b80e1d1566dd455a800e010e04945d623074fd4 | |
parent | WebView: always add zoom widget to context menu (diff) | |
download | smolbote-dc7ce0a224e70b785cdae7445a26aae412e55055.tar.xz |
WebView: fix context menu transparency with Plasma
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | 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) |