From a20c52dffcef05f9ee44ed4cf3a729a19b1c2ab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Mon, 14 Jan 2019 14:21:10 +0100 Subject: Use requestUpdate instead of timer in a few GL examples Change-Id: I235ad367fe693c86ef5a0844fde0573371b284db Reviewed-by: Laszlo Agocs --- examples/opengl/hellowindow/hellowindow.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/opengl/hellowindow/hellowindow.h') diff --git a/examples/opengl/hellowindow/hellowindow.h b/examples/opengl/hellowindow/hellowindow.h index e92e45a125..e6d7970cfc 100644 --- a/examples/opengl/hellowindow/hellowindow.h +++ b/examples/opengl/hellowindow/hellowindow.h @@ -112,11 +112,12 @@ public: QColor color() const; void updateColor(); +protected: + bool event(QEvent *ev) override; void exposeEvent(QExposeEvent *event) override; - -private: void mousePressEvent(QMouseEvent *) override; +private: int m_colorIndex; QColor m_color; const QSharedPointer m_renderer; -- cgit v1.2.3