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

Constant expression results in Symbian tap plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 1.0.2
    • Fix Version/s: 1.1.0
    • Component/s: Sensors
    • Labels:
      None
    • Environment:
      Symbian
    • Commits:
      9a826a78a0fdb658105786ab5cbe8d065cd170c3

      Description

      All the axis comparisons in \qtmobility\plugins\sensors\symbian\tapsensorsym.cpp switch-case structure's default branch are always true regardless of the values of its operands:

      default:
      {
      // Indicates a tap on X axis
      if(iData.iDirection==KSensrvAccelerometerDirectionXplus|KSensrvAccelerometerDirectionXminus)

      { iReading.setTapDirection(QTapReading::X); }

      // Indicates a tap on Y axis
      else if(iData.iDirection==KSensrvAccelerometerDirectionYplus|KSensrvAccelerometerDirectionYminus)

      { iReading.setTapDirection(QTapReading::Y); }

      // Indicates a tap on Z axis
      else if(iData.iDirection==KSensrvAccelerometerDirectionZplus|KSensrvAccelerometerDirectionZminus)

      { iReading.setTapDirection(QTapReading::Z); }

      // Undefined value
      else

      { iReading.setTapDirection(QTapReading::Undefined); }

      }
      }

        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:
            vihria Tomi VihriƤ
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes