[Development] Another late API addition in QScreen

shane.kearns at accenture.com shane.kearns at accenture.com
Wed Jun 6 15:38:13 CEST 2012


> -----Original Message-----
> From: development-bounces+shane.kearns=accenture.com at qt-project.org
> [mailto:development-bounces+shane.kearns=accenture.com at qt-project.org]
> On Behalf Of Samuel Rødal
> Sent: 05 June 2012 13:30
> To: development at qt-project.org
> Subject: [Development] Another late API addition in QScreen
>
> Hello,
>
> the current QScreen API forces the platform to always have an
> accelerometer sensor or similar running in order to provide
> QScreen::orientation() updates, which might lead to wasted resources in
> the case of handheld embedded devices.
>
> As a fix for this I've introduced a new function in QScreen,
> setOrientationUpdateMask(), in order force the application to
> explicitly have to ask for orientation updates.
>
> https://codereview.qt-project.org/#change,27981
>

Late comment, but should the default have been updates on?
Qt 4 behaviour on symbian/harmattan was to have screen rotation be automatic unless opted out from (which was unfortunately a different Qt API on each platform)

--



________________________________
Subject to local law, communications with Accenture and its affiliates including telephone calls and emails (including content), may be monitored by our systems for the purposes of security and the assessment of internal compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com




More information about the Development mailing list