mirror of https://gitlab.com/openlp/openlp.git
Disable context menu
This commit is contained in:
parent
e14307111b
commit
2d581ac8ad
|
@ -77,6 +77,7 @@ class WebEngineView(QtWebEngineWidgets.QWebEngineView):
|
|||
self.page().settings().setAttribute(QtWebEngineWidgets.QWebEngineSettings.LocalStorageEnabled, True)
|
||||
self.page().settings().setAttribute(QtWebEngineWidgets.QWebEngineSettings.LocalContentCanAccessFileUrls, True)
|
||||
self.page().settings().setAttribute(QtWebEngineWidgets.QWebEngineSettings.LocalContentCanAccessRemoteUrls, True)
|
||||
self.setContextMenuPolicy(QtCore.Qt.PreventContextMenu)
|
||||
|
||||
def eventFilter(self, obj, ev):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue