diff options
| author | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-03-07 12:49:44 +0100 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-14 18:20:46 +0100 |
| commit | 6a9f917b6a1598c113894057110d16d109ecad43 (patch) | |
| tree | 4ae5f3ce17f5ddabb168d14f2ca86b2c8060bdda /examples/opengl/contextinfo/widget.h | |
| parent | 6d05f5faff8b125c3e43192b857990e7f0ff208d (diff) | |
contextinfo example: Print the format() both for context and surface
And make the output a bit nicer.
Change-Id: I5f0f82374b6e9f9feca70a60c30967adb35d48ec
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Diffstat (limited to 'examples/opengl/contextinfo/widget.h')
| -rw-r--r-- | examples/opengl/contextinfo/widget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/opengl/contextinfo/widget.h b/examples/opengl/contextinfo/widget.h index dcae66dac05..ad664178e4b 100644 --- a/examples/opengl/contextinfo/widget.h +++ b/examples/opengl/contextinfo/widget.h @@ -46,6 +46,8 @@ QT_FORWARD_DECLARE_CLASS(QComboBox) QT_FORWARD_DECLARE_CLASS(QTextEdit) QT_FORWARD_DECLARE_CLASS(QVBoxLayout) +QT_FORWARD_DECLARE_CLASS(QSurfaceFormat) +QT_FORWARD_DECLARE_CLASS(QSurface) class Widget : public QWidget { @@ -65,6 +67,7 @@ private: void addOptions(QLayout *layout); void addRenderableTypes(QLayout *layout); void addRenderWindow(); + void printFormat(const QSurfaceFormat &format); QComboBox *m_version; QLayout *m_profiles; @@ -74,6 +77,7 @@ private: QTextEdit *m_extensions; QVBoxLayout *m_renderWindowLayout; QWidget *m_renderWindowContainer; + QSurface *m_surface; }; #endif // WIDGET_H |
