Qt Mobility Reference Documentation

QML LandmarkAbstractModel Element

The LandmarkAbstractModel element is an uncreatable / uninstantiable base element for LandmarkModel and LandmarkCategoryModel. It defines many common properties for the two models. More...

Inherited by LandmarkCategoryModel and LandmarkModel.

  • List of all members, including inherited members
  • Properties

    Signals

    Methods

    Detailed Description

    The LandmarkAbstractModel element is an uncreatable / uninstantiable base element for LandmarkModel and LandmarkCategoryModel. It defines many common properties for the two models.

    This element is part of the QtMobility.location 1.1 module.

    See also LandmarkModel and LandmarkCategoryModel.

    Property Documentation

    autoUpdate : bool

    Controls whether the model data should be automatically updated when appropriate events occur: limit changes, offset changes, filter changes, filter contents change, or sorting rules change. Property also controls whether the data is updated automatically once model instantiation is completed.

    Note: while autoUpdate adds to development comfort, each change in appropriate parameters cause full fetch from underlying database and therefore its use should be thought through. E.g. if your application inherently behaves such that filters, their contents, and underlying database change very frequently, it may be wiser to bind a manual update call to a less hectic trigger source.


    count : int

    Indicates the number of items currently in the model (landmarks/categories).


    read-onlyerror : string

    Human readable string of the last error that occurred (read-only).


    limit : int

    Sets the maximum amount of items held by the model.


    offset : int

    Sets the offset for the landmarks. For example if one creates a tabbed / paged application, the offset could be changed dynamically by a multiple of items per page.


    sortBy : enumeration

    Specifies the role to sort the items by.


    sortOrder : enumeration

    Specifies the sort order.


    Signal Documentation

    LandmarkAbstractModel::databaseChanged ()

    This handler is called when the data in the underlying data storage has changed. If autoUpdate is true, model data will be updated shortly afterwards.


    LandmarkAbstractModel::modelChanged ()

    This handler is called when the model data has changed.


    Method Documentation

    LandmarkAbstractModel::update ()

    Updates the items represented by the model from the underlying store.

    See also autoUpdate.


    X

    Thank you for giving your feedback.

    Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.