From 0ff3e7d155967e6a0ffe7836d9fc133ca08e2302 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Thu, 16 Oct 2014 13:35:33 +0200 Subject: Make hellowindow multi display capable on embedded Platforms like eglfs allow a single window per screen. Thus the behavior of --multiple is not suitable since it tries to open multiple windows on the primary screen. Instead, introduce --multiscreen. Add also --timeout to quit the app after 10 seconds. This is essential on platforms that do not have windows with decorations that can be used to close windows. With eglfs' kms/drm hooks, starting with --multiscreen will now show a rotating logo on all connected displays, with some random background color. Change-Id: I53f2651f05620e752c289038a9b3ff4508273173 Reviewed-by: Louai Al-Khanji Reviewed-by: Andy Nichols --- examples/opengl/hellowindow/hellowindow.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/opengl/hellowindow/hellowindow.h') diff --git a/examples/opengl/hellowindow/hellowindow.h b/examples/opengl/hellowindow/hellowindow.h index 6a6fa275e2..cba4b34db6 100644 --- a/examples/opengl/hellowindow/hellowindow.h +++ b/examples/opengl/hellowindow/hellowindow.h @@ -90,12 +90,14 @@ private: int m_currentWindow; QMutex m_windowLock; + + QColor m_backgroundColor; }; class HelloWindow : public QWindow { public: - explicit HelloWindow(const QSharedPointer &renderer); + explicit HelloWindow(const QSharedPointer &renderer, QScreen *screen = 0); QColor color() const; void updateColor(); -- cgit v1.2.3