[Webkit-unassigned] [Bug 64297] [Qt][WK2] Add the Web Inspector to WebKit2
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 9 13:23:13 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=64297
--- Comment #8 from Genisim <genisim at yahoo.com> 2011-08-09 13:23:12 PST ---
Follow team's recommendation, I move toggleWebInspector function
> +void QDesktopWebView::toggleWebInspector()
> +{
> + WKPageGroupRef pageGroupRef = WKPageGetPageGroup(pageRef());
> + WKPreferencesRef preferences = WKPageGroupGetPreferences(pageGroupRef);
> + if (WKInspectorIsVisible(WKPageGetInspector(pageRef()))) {
> + WKPreferencesSetDeveloperExtrasEnabled(preferences, false);
> + WKInspectorClose(WKPageGetInspector(pageRef()));
> + } else {
> + WKPreferencesSetDeveloperExtrasEnabled(preferences, true);
> + WKInspectorShow(WKPageGetInspector(pageRef()));
> + }
> +}
to application MiniBrowser / BrowserWindow.cpp
and got problem with "pageRef"
pageRef() is private member of qdesktopwebview class
and will be available by friend class qdesktopwebviewprivate
but in app (MiniBrowser) one using qdesktopwebview
Question: how one will get pageRef. (WKPageRef() does not work. Any suggestions
recommendations ?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list