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

Axis naming not consistent with orientation on Maemo

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 1.2.0
    • 1.0.2
    • Sensors
    • None
    • Ubuntu Lucid 10.04, 64bit
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: