[Qt] QtLauncher needs an option to Enable/Disable a QGLWidget as Viewport
Created attachment 50999 [details] Patch
Comment on attachment 50999 [details] Patch No general objections, but this needs to be #ifdef, as it breaks the build with Qt configuration where there is no OpenGL support. Symbian is one of those platforms where OpenGL is not available.
Created attachment 51024 [details] Patch
(In reply to comment #3) > Created an attachment (id=51024) [details] > Patch Thanks for the review. :) I didn't find any macro or global define on Qt's 4.7 documentation to handle this, so what I did was just to ensure that we are not building on Symbian. Is that ok?
Comment on attachment 51024 [details] Patch I'm sorry, I should've been more specific :(. I didn't mean to disable OpenGl for S60 but when it's not enabled in Qt in general. S60 was just an example. For example it's not unusual that Qt fo Embedded Linux is compiled without OpenGL support, too. You can verify that OpenGL support is available in the .pro file using contains(QT_CONFIG, opengl) { do opengl things } In addition there's a QT_NO_OPENGL define set when Qt is configured without OpenGL support.
Created attachment 51442 [details] Patch
(In reply to comment #5) > (From update of attachment 51024 [details]) > I'm sorry, I should've been more specific :(. I didn't mean to disable OpenGl > for S60 but when it's not enabled in Qt in general. S60 was just an example. I'm sorry that I didn't understand it correctly at first place. :) > You can verify that OpenGL support is available in the .pro file using > > contains(QT_CONFIG, opengl) { > do opengl things > } > > In addition there's a QT_NO_OPENGL define set when Qt is configured without > OpenGL support. Thanks for the tips! I didn't find this QT_NO_OPENGL define documented anywhere besides Qt src itself, so I sticked to the .pro approach.
Attachment 51442 [details] did not build on qt: Build output: http://webkit-commit-queue.appspot.com/results/1087005
Created attachment 51447 [details] Patch Trying to fix the build failure.
Rebased and Committed as r56618 by Antonio. Thanks!
cherry-pick-for-backport: <r56618>
Revision r56618 cherry-picked into qtwebkit-2.0 with commit 8221def16a71a7ec51d582ce69f1bfdd6bab8a18