diff options
author | Thomas McGuire <thomas.mcguire.qnx@kdab.com> | 2012-09-05 13:25:03 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-06 14:56:34 +0200 |
commit | bce8b5486d477d20132183110c5bb84b313a5c65 (patch) | |
tree | 93c30d17db5dbd1fa321ce75d5f4a3a8670c0939 /src/plugins | |
parent | 06302999da91d6e32ddf9c65171994e375f739ed (diff) |
Hide the video overlay when the QML element is hidden
An display invalid rect is used for invisible QML
items.
Change-Id: Ifb2a25f1c5387ab8cef1359ac6c3e2f90a42cd10
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@gmail.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/blackberry/bbvideowindowcontrol.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/blackberry/bbvideowindowcontrol.cpp b/src/plugins/blackberry/bbvideowindowcontrol.cpp index 690561914..3934c31b5 100644 --- a/src/plugins/blackberry/bbvideowindowcontrol.cpp +++ b/src/plugins/blackberry/bbvideowindowcontrol.cpp @@ -292,10 +292,13 @@ void BbVideoWindowControl::updateVideoPosition() if (m_window != 0) { const int position[2] = { topLeft.x(), topLeft.y() }; const int size[2] = { width, height }; + const int visible = m_displayRect.isValid(); if (screen_set_window_property_iv(m_window, SCREEN_PROPERTY_POSITION, position) != 0) perror("Setting video position failed"); if (screen_set_window_property_iv(m_window, SCREEN_PROPERTY_SIZE, size) != 0) perror("Setting video size failed"); + if (screen_set_window_property_iv(m_window, SCREEN_PROPERTY_VISIBLE, &visible) != 0) + perror("Setting video visibility failed"); } } } |