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

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 1.2.0
    • Location
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: