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

Declarative location plugin versioning mismatch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • 1.2.0
    • 1.1.2, 1.2.0
    • Location
    • None
    • Ubuntu Lucid 10.04, 64bit
      Symbian Belle
    • eb60562b2b9e779817cc0cdfa95710e779def499

      The 1.1 and 1.2 branches declare different location elements as available from different versions, diff qt-mobility-qt-mobility-1.2.0/plugins/declarative/location/location.cpp qt-mobility-qt-mobility-1.1.3/plugins/declarative/location/location.cpp gives

      105,121c102,113
      <         qmlRegisterType<QDeclarativeGeoServiceProvider>(uri, 1, 2, "Plugin");
      <         qmlRegisterType<QDeclarativeGeoServiceProviderParameter>(uri, 1, 2, "PluginParameter");
      <         qmlRegisterType<QDeclarativeGraphicsGeoMap>(uri, 1, 2, "Map");
      <         qmlRegisterType<QDeclarativeGeoMapObjectBorder>(); // used as grouped property
      <         qmlRegisterType<QGeoMapObject>(uri, 1, 2, "QGeoMapObject");
      <         qmlRegisterType<QDeclarativeGeoMapObject>(uri, 1, 2, "MapObject");
      <         qmlRegisterType<QDeclarativeGeoMapObjectView>(uri, 1, 2, "MapObjectView");
      <         qmlRegisterType<QDeclarativeGeoMapGroupObject>(uri, 1, 2, "MapGroup");
      <         qmlRegisterType<QDeclarativeGeoMapCircleObject>(uri, 1, 2, "MapCircle");
      <         qmlRegisterType<QDeclarativeGeoMapPolygonObject>(uri, 1, 2, "MapPolygon");
      <         qmlRegisterType<QDeclarativeGeoMapPolylineObject>(uri, 1, 2, "MapPolyline");
      <         qmlRegisterType<QDeclarativeGeoMapRectangleObject>(uri, 1, 2, "MapRectangle");
      <         qmlRegisterType<QDeclarativeGeoMapTextObject>(uri, 1, 2, "MapText");
      <         qmlRegisterType<QDeclarativeGeoMapPixmapObject>(uri, 1, 2, "MapImage");
      < 
      <         qmlRegisterType<QDeclarativeGeoMapMouseArea>(uri, 1, 2, "MapMouseArea");
      <         qmlRegisterType<QDeclarativeGeoMapMouseEvent>(uri, 1, 2, "MapMouseEvent");
      ---
      >         qmlRegisterType<QDeclarativeGeoServiceProvider>(uri, 1, 1, "Plugin");
      >         qmlRegisterType<QDeclarativeGeoServiceProviderParameter>(uri, 1, 1, "PluginParameter");
      >         qmlRegisterType<QDeclarativeGraphicsGeoMap>(uri, 1, 1, "Map");
      >         qmlRegisterType<QDeclarativeGeoMapObjectBorder>();
      >         qmlRegisterType<QGeoMapObject>(uri, 1, 1, "QGeoMapObject");
      >         qmlRegisterType<QDeclarativeGeoMapObject>(uri, 1, 1, "MapGroup");
      >         qmlRegisterType<QDeclarativeGeoMapCircleObject>(uri, 1, 1, "MapCircle");
      >         qmlRegisterType<QDeclarativeGeoMapPolygonObject>(uri, 1, 1, "MapPolygon");
      >         qmlRegisterType<QDeclarativeGeoMapPolylineObject>(uri, 1, 1, "MapPolyline");
      >         qmlRegisterType<QDeclarativeGeoMapRectangleObject>(uri, 1, 1, "MapRectangle");
      >         qmlRegisterType<QDeclarativeGeoMapTextObject>(uri, 1, 1, "MapText");
      >         qmlRegisterType<QDeclarativeGeoMapPixmapObject>(uri, 1, 1, "MapImage");
      123,124c115,116
      <         //qmlRegisterType<QDeclarativeGeocodeModel>(uri, 1, 3, "GeocodeModel");
      <         //qmlRegisterType<QDeclarativeReverseGeocodeModel>(uri, 1, 3, "ReverseGeocodeModel");
      ---
      >         qmlRegisterType<QDeclarativeGeocodeModel>(uri, 1, 1, "GeocodeModel");
      >         qmlRegisterType<QDeclarativeReverseGeocodeModel>(uri, 1, 1, "ReverseGeocodeModel");
      

      this in turn means that all existing 1.1 Map-related applications break when run on a device with 1.2. For example on Harmattan

      import QtQuick 1.0
      import QtMobility.location 1.1

      Map {
      }

      will yield a qrc:/qml/main.qml:12:5: Map is not a type

      Documentation is also contradictory, the 1.1 docs claim that the elements are available from 1.1, while the 1.2 ones say 1.2

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

            alex Alex (closed Nokia identity) (Inactive)
            achipa Attila Csipa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes