summaryrefslogtreecommitdiffstats
path: root/examples/opengl/qopenglwidget/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/qopenglwidget/mainwindow.h')
-rw-r--r--examples/opengl/qopenglwidget/mainwindow.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/opengl/qopenglwidget/mainwindow.h b/examples/opengl/qopenglwidget/mainwindow.h
index 9db3e8cbec..353586c42c 100644
--- a/examples/opengl/qopenglwidget/mainwindow.h
+++ b/examples/opengl/qopenglwidget/mainwindow.h
@@ -45,6 +45,8 @@
#include <QTimer>
#include <QGridLayout>
+QT_FORWARD_DECLARE_CLASS(QOpenGLWidget)
+
class MainWindow : public QMainWindow
{
Q_OBJECT
@@ -52,15 +54,18 @@ class MainWindow : public QMainWindow
public:
MainWindow();
void addNew();
+ bool timerEnabled() const { return m_timer->isActive(); }
private slots:
void updateIntervalChanged(int value);
+ void timerUsageChanged(bool enabled);
private:
QTimer *m_timer;
QGridLayout *m_layout;
int m_nextX;
int m_nextY;
+ QVector<QOpenGLWidget *> m_glWidgets;
};
#endif