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>
This commit is contained in:
committed by
Qt by Nokia
parent
06302999da
commit
bce8b5486d
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user