Move forward-declaration inside of namespace

Including both qopenglextensions.h and qopenglcontext.h would cause
ambiguity for the compiler when using QOpenGLContext

Change-Id: If8e46741c86d7639f442b5ac05a4493da784eb2f
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Mårten Nordheim 2019-05-14 20:15:48 +02:00
parent 95e1363802
commit 2544cfe80f
1 changed files with 2 additions and 2 deletions

View File

@ -66,10 +66,10 @@
#include <QtGui/qopengl.h>
class QOpenGLContext;
QT_BEGIN_NAMESPACE
class QOpenGLContext;
#if 0
// silence syncqt warnings
#pragma qt_class(QOpenGLExtensions)