Added webkit inspector to menu
This commit is contained in:
parent
3d1768540d
commit
f3bb2efbc0
5 changed files with 53 additions and 13 deletions
|
@ -42,7 +42,6 @@ class WebViewCreator(QtWebKit.QWebView):
|
|||
self.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
|
||||
self.customContextMenuRequested.connect(self.context_menu_requested)
|
||||
self.actions = []
|
||||
QtWebKit.QWebSettings.globalSettings().setAttribute(QtWebKit.QWebSettings.DeveloperExtrasEnabled, True)
|
||||
|
||||
def copy_link():
|
||||
self.page().triggerAction(QtWebKit.QWebPage.CopyLinkToClipboard)
|
||||
|
|
Reference in a new issue