Polish forward decl in vulkan and opengl examples
Pick-to: 6.5 Change-Id: I9f05aedc7649ab7e248b7332c04a6664e85182d8 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
parent
3c6c3eccd1
commit
da4de6b6e3
@ -6,10 +6,8 @@
|
|||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_FORWARD_DECLARE_CLASS(QSlider)
|
||||||
class QSlider;
|
QT_FORWARD_DECLARE_CLASS(QPushButton)
|
||||||
class QPushButton;
|
|
||||||
QT_END_NAMESPACE
|
|
||||||
|
|
||||||
class GLWidget;
|
class GLWidget;
|
||||||
class MainWindow;
|
class MainWindow;
|
||||||
|
@ -9,14 +9,10 @@
|
|||||||
#include <QVector3D>
|
#include <QVector3D>
|
||||||
#include "../hellogl2/logo.h"
|
#include "../hellogl2/logo.h"
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_FORWARD_DECLARE_CLASS(QOpenGLTexture)
|
||||||
|
QT_FORWARD_DECLARE_CLASS(QOpenGLShaderProgram)
|
||||||
class QOpenGLTexture;
|
QT_FORWARD_DECLARE_CLASS(QOpenGLBuffer)
|
||||||
class QOpenGLShaderProgram;
|
QT_FORWARD_DECLARE_CLASS(QOpenGLVertexArrayObject)
|
||||||
class QOpenGLBuffer;
|
|
||||||
class QOpenGLVertexArrayObject;
|
|
||||||
|
|
||||||
QT_END_NAMESPACE
|
|
||||||
|
|
||||||
class GLWindow : public QOpenGLWindow
|
class GLWindow : public QOpenGLWindow
|
||||||
{
|
{
|
||||||
|
@ -7,11 +7,9 @@
|
|||||||
#include <QWindow>
|
#include <QWindow>
|
||||||
#include <QOpenGLFunctions>
|
#include <QOpenGLFunctions>
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_FORWARD_DECLARE_CLASS(QPainter)
|
||||||
class QPainter;
|
QT_FORWARD_DECLARE_CLASS(QOpenGLContext)
|
||||||
class QOpenGLContext;
|
QT_FORWARD_DECLARE_CLASS(QOpenGLPaintDevice)
|
||||||
class QOpenGLPaintDevice;
|
|
||||||
QT_END_NAMESPACE
|
|
||||||
|
|
||||||
//! [1]
|
//! [1]
|
||||||
class OpenGLWindow : public QWindow, protected QOpenGLFunctions
|
class OpenGLWindow : public QWindow, protected QOpenGLFunctions
|
||||||
|
@ -6,12 +6,10 @@
|
|||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_FORWARD_DECLARE_CLASS(QLCDNumber)
|
||||||
class QLCDNumber;
|
QT_FORWARD_DECLARE_CLASS(QLabel)
|
||||||
class QLabel;
|
QT_FORWARD_DECLARE_CLASS(QPushButton)
|
||||||
class QPushButton;
|
QT_FORWARD_DECLARE_CLASS(QCheckBox)
|
||||||
class QCheckBox;
|
|
||||||
QT_END_NAMESPACE
|
|
||||||
|
|
||||||
class VulkanWindow;
|
class VulkanWindow;
|
||||||
|
|
||||||
|
@ -7,13 +7,11 @@
|
|||||||
#include "../shared/trianglerenderer.h"
|
#include "../shared/trianglerenderer.h"
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
class VulkanWindow;
|
QT_FORWARD_DECLARE_CLASS(QTabWidget)
|
||||||
|
QT_FORWARD_DECLARE_CLASS(QPlainTextEdit)
|
||||||
|
QT_FORWARD_DECLARE_CLASS(QLCDNumber)
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
class VulkanWindow;
|
||||||
class QTabWidget;
|
|
||||||
class QPlainTextEdit;
|
|
||||||
class QLCDNumber;
|
|
||||||
QT_END_NAMESPACE
|
|
||||||
|
|
||||||
class MainWindow : public QWidget
|
class MainWindow : public QWidget
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user