E-book viewer: Add a right click menu item 'Inspect' that allows you to inspect the underlying HTML/CSS source of the currently displayed content

This commit is contained in:
Kovid Goyal 2010-12-19 22:33:26 -07:00
parent 506f08be46
commit b358edb5e0

View File

@ -188,6 +188,7 @@ class Document(QWebPage):
# Miscellaneous
settings.setAttribute(QWebSettings.LinksIncludedInFocusChain, True)
settings.setAttribute(QWebSettings.DeveloperExtrasEnabled, True)
self.set_user_stylesheet()
self.misc_config()