Commit b39df8bf authored by Samuel Rødal's avatar Samuel Rødal Committed by Qt by Nokia
Browse files

Made window orientation API more flexible.


Previously we only had QWindow::setOrientation() which was a hint about
the orientation the window's contents were rendered in.

However, it's necessary to separate between the orientation
corresponding to the window buffer layout and orientation of the
contents. A game for example might typically want to use a landscape
buffer even on a portrait device. Thus, we replace
QWindow::orientation() with QWindow::reportContentOrientationChange() and
QWindow::requestWindowOrientation().

Change-Id: I1f07362192daf36c45519cb05b43ac352f1945b5
Reviewed-by: default avatarLars Knoll <lars.knoll@nokia.com>
parent b0a0403d
No related merge requests found
Showing with 310 additions and 139 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment