[Webkit-unassigned] [Bug 61802] [Qt][WK2] Add QGLWidget viewport support to MiniBrowser
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 31 15:04:26 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=61802
Simon Hausmann <hausmann at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #95476|review?, commit-queue? |review+, commit-queue+
Flag| |
--- Comment #4 from Simon Hausmann <hausmann at webkit.org> 2011-05-31 15:04:26 PST ---
(From update of attachment 95476)
View in context: https://bugs.webkit.org/attachment.cgi?id=95476&action=review
r=me
At some point we should probably make that simply the default...
> Tools/MiniBrowser/qt/BrowserView.cpp:49
> + setViewport(new QGLWidget());
Nitpick, here you use new GLWidget() and further down just "new QGLWidget"
> Tools/MiniBrowser/qt/BrowserView.cpp:76
> +void BrowserView::toggleGLViewport(bool useQGLWidgetViewport)
> +{
> +#if defined(QT_CONFIGURED_WITH_OPENGL)
> + setViewport(useQGLWidgetViewport ? new QGLWidget : 0);
> +#endif
> +}
setViewport is a public method, so this code doesn't actually have to live in BrowserView but could also be done from the outside.
--
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