qt5base-lts/examples/opengl/paintedwindow
Samuel Rødal b39df8bf92 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: Lars Knoll <lars.knoll@nokia.com>
2012-01-24 15:38:48 +01:00
..
main.cpp Made window orientation API more flexible. 2012-01-24 15:38:48 +01:00
paintedwindow.cpp Made window orientation API more flexible. 2012-01-24 15:38:48 +01:00
paintedwindow.h Update contact information in license headers. 2012-01-23 04:04:33 +01:00
paintedwindow.pro Copy core GL functionality to QtGui with QGL -> QOpenGL naming. 2011-08-29 10:25:24 +02:00