BlackBerry: Fixed root window size, continued

The previous patch removed a call to setGeometry, and now only calls
setGeometryHelper. This means the screen window will be resized, but
Qt won't know about our new window size. The scene graph of a QtQuick2
application would layout and render to the wrong target size.

Fixed by adding a call to QWindowSystemInterface::handleGeometryChange
if we decide to use a different geometry than suggested by the window.

Task-number: QTBUG-34930
Change-Id: Ie91c2edc45c47f5bf1d45aed981b969fcc3f40dd
Reviewed-by: Bernd Weimer <bweimer@blackberry.com>
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
This commit is contained in:
Arvid Nilsson 2013-11-21 11:37:31 +01:00 committed by The Qt Project
parent 376ccedd1a
commit 88728897a6

View File

@ -609,9 +609,12 @@ void QQnxWindow::initWindow()
if (window()->parent() && window()->parent()->handle())
setParent(window()->parent()->handle());
const QRect &initialGeometry = screen()->rootWindow() == this ?
screen()->geometry() : window()->geometry();
setGeometryHelper(initialGeometry);
if (screen()->rootWindow() == this) {
setGeometryHelper(screen()->geometry());
QWindowSystemInterface::handleGeometryChange(window(), screen()->geometry());
} else {
setGeometryHelper(window()->geometry());
}
}
void QQnxWindow::createWindowGroup()