summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Weimer <bweimer@blackberry.com>2014-01-18 17:28:30 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-22 20:46:32 +0100
commit506c34fdd2b0a7adfd79b0a42b91f0bcc7b045ec (patch)
tree97e594d9cfdb09d9e2917813b73c6042edf5ccdf
parentcf66bf942bfd19c6c01d05a77b84d4a36cb7ca9f (diff)
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>
-rw-r--r--src/plugins/platforms/qnx/qqnxwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/platforms/qnx/qqnxwindow.cpp b/src/plugins/platforms/qnx/qqnxwindow.cpp
index e28e5f40e5..241608fa98 100644
--- a/src/plugins/platforms/qnx/qqnxwindow.cpp
+++ b/src/plugins/platforms/qnx/qqnxwindow.cpp
@@ -243,8 +243,7 @@ void QQnxWindow::setOpacity(qreal level)
if (result != 0)
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
- // the transparency will look wrong...
+ screen_flush_context(m_screenContext, 0);
}
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
setWindowState(window()->windowState());
+ setOpacity(window()->opacity());
+
if (window()->parent() && window()->parent()->handle())
setParent(window()->parent()->handle());