QNX: Fixed window opacity

Opacity was not set initially and not committed to libscreen when
changed.

Change-Id: Icf24be833de28bd72275cf93a3ab2fb344726023
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
This commit is contained in:
Bernd Weimer 2014-01-18 17:28:30 +01:00 committed by The Qt Project
parent cf66bf942b
commit 506c34fdd2

View File

@ -243,8 +243,7 @@ void QQnxWindow::setOpacity(qreal level)
if (result != 0) if (result != 0)
qFatal("QQnxWindow: failed to set window global alpha, errno=%d", errno); qFatal("QQnxWindow: failed to set window global alpha, errno=%d", errno);
// TODO: How to handle children of this window? If we change all the visibilities, then screen_flush_context(m_screenContext, 0);
// the transparency will look wrong...
} }
void QQnxWindow::setExposed(bool exposed) void QQnxWindow::setExposed(bool exposed)
@ -584,6 +583,8 @@ void QQnxWindow::initWindow()
// Qt never calls these setters after creating the window, so we need to do that ourselves here // Qt never calls these setters after creating the window, so we need to do that ourselves here
setWindowState(window()->windowState()); setWindowState(window()->windowState());
setOpacity(window()->opacity());
if (window()->parent() && window()->parent()->handle()) if (window()->parent() && window()->parent()->handle())
setParent(window()->parent()->handle()); setParent(window()->parent()->handle());