diff options
author | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-10-16 13:35:33 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-10-16 14:41:19 +0200 |
commit | 0ff3e7d155967e6a0ffe7836d9fc133ca08e2302 (patch) | |
tree | 66ed83744da448098209ef46113b237d353e8ce1 /examples/opengl/hellowindow/hellowindow.h | |
parent | 57015838916ed15805e00283ef522fa179c76b04 (diff) |
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 <louai.al-khanji@digia.com>
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Diffstat (limited to 'examples/opengl/hellowindow/hellowindow.h')
-rw-r--r-- | examples/opengl/hellowindow/hellowindow.h | 4 |
1 files changed, 3 insertions, 1 deletions
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> &renderer); + explicit HelloWindow(const QSharedPointer<Renderer> &renderer, QScreen *screen = 0); QColor color() const; void updateColor(); |