summaryrefslogtreecommitdiffstats
path: root/examples/opengl/paintedwindow/main.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-11-23 09:36:51 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-01 10:51:10 +0100
commitc7ba279815f9bd35a78ede33f516583cf8b022ca (patch)
treec3ac4b1fe93ab49e1f58dc7ff56bb0339181658a /examples/opengl/paintedwindow/main.cpp
parentf1a67c65312e62c30698c07ab382db64998b8d56 (diff)
Added rotation animation to paintedwindow example.
This serves as a useful test case for the QScreen orientation API. Change-Id: I009ebd8b6d345453620420d84f3ff9d2d2e2663e Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'examples/opengl/paintedwindow/main.cpp')
-rw-r--r--examples/opengl/paintedwindow/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/opengl/paintedwindow/main.cpp b/examples/opengl/paintedwindow/main.cpp
index d4eead9d402..c672798558e 100644
--- a/examples/opengl/paintedwindow/main.cpp
+++ b/examples/opengl/paintedwindow/main.cpp
@@ -53,7 +53,7 @@ int main(int argc, char **argv)
QRect screenGeometry = screen->availableGeometry();
QPoint center = screenGeometry.center();
- QRect windowRect(0, 0, 640, 480);
+ QRect windowRect(0, 0, 480, 640);
PaintedWindow window;
window.setGeometry(QRect(center - windowRect.center(), windowRect.size()));
@@ -61,3 +61,4 @@ int main(int argc, char **argv)
app.exec();
}
+