CLOSED FIXED 36270
[Qt] QtLauncher needs an option to Enable/Disable a QGLWidget as Viewport
https://bugs.webkit.org/show_bug.cgi?id=36270
Summary [Qt] QtLauncher needs an option to Enable/Disable a QGLWidget as Viewport
Jesus Sanchez-Palencia
Reported 2010-03-17 20:09:08 PDT
[Qt] QtLauncher needs an option to Enable/Disable a QGLWidget as Viewport
Attachments
Patch (4.65 KB, patch)
2010-03-17 20:17 PDT, Jesus Sanchez-Palencia
no flags
Patch (4.98 KB, patch)
2010-03-18 08:16 PDT, Jesus Sanchez-Palencia
no flags
Patch (5.19 KB, patch)
2010-03-23 11:40 PDT, Jesus Sanchez-Palencia
no flags
Patch (4.84 KB, patch)
2010-03-23 13:16 PDT, Jesus Sanchez-Palencia
hausmann: review+
Jesus Sanchez-Palencia
Comment 1 2010-03-17 20:17:07 PDT
Simon Hausmann
Comment 2 2010-03-18 00:24:53 PDT
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.
Jesus Sanchez-Palencia
Comment 3 2010-03-18 08:16:01 PDT
Jesus Sanchez-Palencia
Comment 4 2010-03-18 08:19:59 PDT
(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?
Simon Hausmann
Comment 5 2010-03-19 00:53:46 PDT
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.
Jesus Sanchez-Palencia
Comment 6 2010-03-23 11:40:07 PDT
Jesus Sanchez-Palencia
Comment 7 2010-03-23 11:45:21 PDT
(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.
Csaba Osztrogonác
Comment 8 2010-03-23 12:10:44 PDT
Jesus Sanchez-Palencia
Comment 9 2010-03-23 13:16:20 PDT
Created attachment 51447 [details] Patch Trying to fix the build failure.
Jesus Sanchez-Palencia
Comment 10 2010-03-26 06:00:50 PDT
Rebased and Committed as r56618 by Antonio. Thanks!
Simon Hausmann
Comment 11 2010-03-26 08:42:46 PDT
cherry-pick-for-backport: <r56618>
Simon Hausmann
Comment 12 2010-03-26 08:45:38 PDT
Revision r56618 cherry-picked into qtwebkit-2.0 with commit 8221def16a71a7ec51d582ce69f1bfdd6bab8a18
Note You need to log in before you can comment on or make changes to this bug.