Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1044

Axis naming not consistent with orientation on Maemo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 1.0.2
    • Fix Version/s: 1.2.0
    • Component/s: Sensors
    • Labels:
      None
    • Environment:
      Ubuntu Lucid 10.04, 64bit
    • Commits:
      886888b733fc91a2875928afc10c0663f031f7e4

      Description

      Under maemo, the axis are not the same as on other devices due to the landscape default. However, as the axis orientation remains the same even when rotated to portrait, different axises need to be used under Symbian and Maemo to have the same effect, i.e.

      QAccelerometerReading *reading = sensor->reading();
      #ifdef Q_WS_MAEMO_5
      accelXCumul += reading->value(1).value<qreal>();
      #else
      accelXCumul += reading->value(0).value<qreal>();
      #endif

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            lramsay Lincoln Ramsay (closed Nokia identity) (Inactive)
            Reporter:
            achipa Attila Csipa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes