Add missing underlying type and Q_ENUM to QOpenGLWidget enums
The enums are QOpenGLWidget::UpdateBehavior and QOpenGLWidget::TargetBuffer. The latter is a new addition to 6.5. Change-Id: I9e73413a944bf4b55e8e308055d79e560ac8668d Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> (cherry picked from commit ce9d708d514011db1ab45630c95222d2a30c7550) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
12326702e5
commit
02e9e4212f
@ -24,11 +24,13 @@ public:
|
|||||||
NoPartialUpdate,
|
NoPartialUpdate,
|
||||||
PartialUpdate
|
PartialUpdate
|
||||||
};
|
};
|
||||||
|
Q_ENUM(UpdateBehavior)
|
||||||
|
|
||||||
enum TargetBuffer {
|
enum TargetBuffer : uint8_t {
|
||||||
LeftBuffer = 0, // Default
|
LeftBuffer = 0, // Default
|
||||||
RightBuffer // Only used when QSurfaceFormat::StereoBuffers is enabled
|
RightBuffer // Only used when QSurfaceFormat::StereoBuffers is enabled
|
||||||
};
|
};
|
||||||
|
Q_ENUM(TargetBuffer)
|
||||||
|
|
||||||
explicit QOpenGLWidget(QWidget* parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
|
explicit QOpenGLWidget(QWidget* parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
|
||||||
~QOpenGLWidget();
|
~QOpenGLWidget();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user