Fix scope code excluded by QT_NO_OPENGL.
Fix scope code excluded by QT_NO_OPENGL.

KDE/android-qt-mobility,enthought/qt-mobility,qtproject/qt-mobility,enthought/qt-mobility,tmcguire/qt-mobility,qtproject/qt-mobility,kaltsi/qt-mobility,kaltsi/qt-mobility,kaltsi/qt-mobility,qtproject/qt-mobility,qtproject/qt-mobility,tmcguire/qt-mobility,KDE/android-qt-mobility,tmcguire/qt-mobility,tmcguire/qt-mobility,KDE/android-qt-mobility,KDE/android-qt-mobility,enthought/qt-mobility,kaltsi/qt-mobility,qtproject/qt-mobility,enthought/qt-mobility,kaltsi/qt-mobility,kaltsi/qt-mobility,tmcguire/qt-mobility,qtproject/qt-mobility,enthought/qt-mobility,enthought/qt-mobility