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

no way how to zoom out MapViewer example on harmattan device

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Won't Do
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: Location
    • Labels:
      None

      Description

      Example from https://qt.gitorious.org/qt-mobility/qt-mobility/trees/master/tests/location-testing-tools/mapviewer doesn't have way to zoom out on harmattan device.

      Symbian uses VolumeDown/VolumeUp buttons.

      void GeoMap::keyPressEvent(QKeyEvent * event)
      {
          switch (event->key()) {
              case Qt::Key_Minus:
      #ifdef Q_OS_SYMBIAN
              case Qt::Key_VolumeDown:
      #endif
                  if (zoomLevel() > minimumZoomLevel()) {
                      setZoomLevel(zoomLevel() - 1);
                  }
                  break;
      
              case Qt::Key_Plus:
      #ifdef Q_OS_SYMBIAN
              case Qt::Key_VolumeUp:
      #endif
                  if (zoomLevel() < maximumZoomLevel()) {
                      setZoomLevel(zoomLevel() + 1);
                  }
                  break;
      
      ...
      
      

        Attachments

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

          Activity

            People

            Assignee:
            alewilso Alex Wilson (closed Nokia identity) (Inactive)
            Reporter:
            paeglis Gatis Paeglis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes