Move handling of rotation changes from event handler to screen
authorKevin Krammer <kevin.krammer.qnx@kdab.com>
Tue, 3 Apr 2012 09:15:39 +0000 (11:15 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 3 Apr 2012 10:45:46 +0000 (12:45 +0200)
commit45b7b0599cd1ebdfe17487215b36ff766068f0e8
tree36260f5385c9e34a5196899eb442c65a0f0cdcef
parentb4ec80ac876d830f5a706afed2c0527ce79d48e0
Move handling of rotation changes from event handler to screen

Have the navigator event handler emit the new rotation as a signal argument
and let the screen class handle all parts of the change, i.e. also notifying
the window system about the geometry change.

This also allows to rotate all screens, not just the primary screen, if this
should be necessary.

Change-Id: I304a80232b84d2d9130e38e955d5a75b1ccad775
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
src/plugins/platforms/qnx/qqnxintegration.cpp
src/plugins/platforms/qnx/qqnxnavigatoreventhandler.cpp
src/plugins/platforms/qnx/qqnxnavigatoreventhandler.h
src/plugins/platforms/qnx/qqnxscreen.cpp
src/plugins/platforms/qnx/qqnxscreen.h