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.

Pick-to: 6.5
Change-Id: I9e73413a944bf4b55e8e308055d79e560ac8668d
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
bb10
Kristoffer Skau 2023-01-25 12:17:45 +01:00
parent de704b633d
commit ce9d708d51
1 changed files with 3 additions and 1 deletions

View File

@ -24,11 +24,13 @@ public:
NoPartialUpdate,
PartialUpdate
};
Q_ENUM(UpdateBehavior)
enum TargetBuffer {
enum TargetBuffer : uint8_t {
LeftBuffer = 0, // Default
RightBuffer // Only used when QSurfaceFormat::StereoBuffers is enabled
};
Q_ENUM(TargetBuffer)
explicit QOpenGLWidget(QWidget* parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
~QOpenGLWidget();