summaryrefslogtreecommitdiffstats
path: root/src/imports/location/qdeclarativegeocodemodel.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Moving location qml implementation to location/declarative*Paolo Angelelli2017-01-261-727/+0
| | | | | | | | | | | | QtLocation quick classes and headers are moved out of the import directory. The location quick classes are now in a subdirectory inside the main qtlocation module. This is necessary in order to privately export certain classes, such as Map Items classes, and create an API to inject these objects into QGeoMap to let plugins render the Map Items directly Change-Id: Ia6ba5f07c4eddd3c4c2ce54bf34f1afcd42c2558 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* QtLocation: Use the newly-introduced qmlWarning instead of qmlInfoRobin Burchell2017-01-131-3/+3
| | | | | | | | qmlInfo will shortly be returning info-level messages (as the name hints), rather than warning level messages. Change-Id: I941f716c4fbe0566e1e5b0ecf673faa7283cde10 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Update Error enums for GeoCode & Route model typesAlex Blasche2015-08-281-13/+30
| | | | | | | | | | | 1.) Remove not required/duplicated enums 2.) Add docs for new enum values 3.) Sorted the enums by alphabet (except for NoErrror) 4.) Other minor spelling corrections 5.) Update and expand tests Change-Id: I83bf9e5e40f1237ead45320d020b315b39442946 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Improve error handling in map, geo and route modelsMichal Klocek2015-06-111-27/+22
| | | | | | | | | | | | | | | | | | | Current error handling is misleading and most of the error messages are logged only to the console. Moreover error messages are too general. For example 'plugin does not support mapping' is reported when provider credentials are missing. Emitting onErrorChanged and onErrorStringChanged does not work correctly, ie. check for errorString in onErrorChanged ends up in not up to date error message. Replace logging to console with setting an error on given component. Use setError instead of qWarning and use one single setter for errorType and errorString. Combine geocode error reporting with geoprovider errors. Combine route error reporting with geoprovider errors. Update unit tests. Move geocode unit test to _core since it is not a _ui test. Change-Id: Ia02b1bf4d88f48b963ada75fa7ed74598713c97f Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Fix QtLocation \since tags in QML and C++Alex Blasche2015-05-291-1/+1
| | | | | | | | The first release is 5.5 and not 5.0 Change-Id: Ib659adf77293e10e8f3d117ce16bbc25858d6ab2 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Document return types for invokable functions in QtLocation QMLAlex Blasche2015-05-291-3/+3
| | | | | | Change-Id: I94aa0e16ff316e791f071ed1c299a717d74ce792 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Small update for location documentation.Michal Klocek2015-03-021-0/+9
| | | | | | | | Add mising documentation locationsChanged signal to GeocodeModel. Remove false note from MapGestureArea. Change-Id: I3a1eae6ecbf41cdf680ba5bc7fd074e88739c1a2 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Remove LGPLv2.1 and add GPLv2+ from/to QtLocationAlex Blasche2015-02-191-14/+17
| | | | | | Change-Id: I3007aa04d3dbc0e00cb0a43987d64d01ddf91edd Reviewed-by: Lorn Potter <lorn.potter@gmail.com> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
* Update contact URL in all license headers to qt.ioAlex Blasche2015-02-181-1/+1
| | | | | Change-Id: Ia1e333be7fec8898de609d9b9303b1ad7687632e Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
* Adds mapping manager error handling to qmlMichal Klocek2015-01-131-1/+1
| | | | | | | | When map is created, plugins can report errors in case of missing required parameters. Expose error message to qml. Change-Id: I014e55cd4aad5ba15ffd0a15bc1f414c21feacc8 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Update license headers and add new license filesAntti Kokko2014-08-241-19/+11
| | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: Iedee2507ab1bd46788409a98505d7be510253110 Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
* Fix translatable strings and cleanup unnecessary stringsAlex Blasche2014-02-261-7/+10
| | | | | | | | | | | | 1.) Reduces the amount of translatable strings as console/qmlInfo() output is not translated. 2.) Unused error messages have been removed 3.) Additional translation hints have been added. Change-Id: I59ef36bd75ab1f6d4878657212884e1251b8a04e Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Remove QtQml dependency from QtPositioning.Aaron McCarthy2013-12-111-2/+3
| | | | | | | | | | | The QtQml dependency was only required for the QML_DECLARE_TYPE macro. Since Qt 5.0 use of this macro is not required. Add missing includes which were being pulled in via QtQml. Task-number: QTBUG-33220 Change-Id: Ief6ab94e25b4bc5cb753672908b09f7e772df1c8 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Doc: Fixed broken Location links due to version number.v5.2.0-alpha1Jerome Pasion2013-09-251-14/+14
| | | | | | | | | | | -Documentation should not have the version number. -Links and documentation with type version number no longer recommended because it is a maintainability and consistency issue. Use <Module name>::<type> to link to a QML type. Change-Id: I830407e68f0a91f3fb9a5deb3fb5a9a02a100a34 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Doc: Removed version from "\inqmlmodule QtLocation"Jerome Pasion2013-09-251-1/+1
| | | | | | | | | | -QDoc ignores these and uses the "\qmlmodule QtLocation 5.0" to determine the import statement. -Better to remove now to avoid confusion. Task-number: QTBUG-32172 Change-Id: I63e468d8e8e5ef672527dc427f02378d0d269ad9 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Fix some name inconsistencies in QtLocationAlex Blasche2013-09-031-14/+14
| | | | | | | | | | | | | 1. Rename QGeocoding* classes to QGeoCoding*. This emphasizes the QGeo prefix rather than the geocing word. The QML interfaces continues to use the Geocoding* as they don't a prefix as such. 2. Rename QProposedSearchResult to QPlaceProposedSearchResult. The class is place related and should carry the QPlace name prefix Change-Id: I428c7e6368774a9f199db5c113de11649e4a665c Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com> Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Split QtLocation into QtPositioning and QtLocationAlex Blasche2013-09-021-5/+4
| | | | | | | | | | | | QtPositioning is not dependent on any gui component and mostly covers everything around the retrieval of position information. QtLocation covers place, map and navigation APIs. Several documentation issues were fixed during the process. Change-Id: I98e2a53065549a2fc43f93a75b4f65b5bc884c92 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Fix QtLocation documentationAlex Blasche2013-07-121-5/+5
| | | | | | | | | | This moves the docs to its proper place and fixes content as well as broken links. There are still some warnings left. Change-Id: Ie83086f4feabab5f3b3d6c92eb6b401a5ff43e29 Reviewed-by: Alex <alexander.blasche@digia.com>
* Update copyright year to 2013Sergio Ahumada2013-06-131-1/+1
| | | | | Change-Id: I5b0cb7d56997ad7b91c073b3e02b31d0368fdcfa Reviewed-by: Alex <alexander.blasche@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-241-24/+24
| | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: Ic1390da64a219642fa1e1482a7677a4c2db15cbc Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Convert GeoShape, GeoRectangle and GeoCircle into QML value types.v5.0.0-beta1Aaron McCarthy2012-08-281-47/+33
| | | | | | | | | | | | | This replaces the GeoShape, GeoRectangle and GeoCircle QML elements with value types. A value type is a better fit for shape types. It is very similar to a rect with some utility functions. Declare QGeoShape, QGeoRectangle and QGeoCircle as movable types. Update documentation. Change-Id: Id6c48e1e841c68f2f0c5c6a9c4a6580a57e2dfb6 Reviewed-by: abcd <amos.choy@nokia.com>
* Convert Coordinate into a QML coordinate value type.Aaron McCarthy2012-08-241-43/+42
| | | | | | | | | | | | | | This replaces the Coordinate QML element with a value type. A value type is a better fit for a coordinate. It is very similar to a vector3d except it has an explicit coordinate system and some utility functions. Declare QGeoCoordinate as a movable type. Update documentation. Change-Id: I758fa9dfd7154a4d60fb791fe553b9fee3164c2c Reviewed-by: abcd <amos.choy@nokia.com>
* Docs: change inappropriate references to 'element'.Peter Yard2012-08-221-2/+2
| | | | | | | | | | | | | 'element' is no longer a correct term for Qt Quick/QML types. Sometimes the term was used instead of 'type' and other times when 'object' would be better. Conflicts: doc/src/places.qdoc Change-Id: I299e96fe628b43abeb3079c5d0dea483c02f7ee3 Reviewed-by: Peter Yard <peter.yard@nokia.com>
* General doc fixes.Peter Yard2012-08-141-6/+6
| | | | | Change-Id: I49a343372fdb0f579dd1849d9bb66bcc8f12db7c Reviewed-by: Peter Yard <peter.yard@nokia.com>
* Doc: Changed \qmlclass to \qmltype and added \instantiates.Jerome Pasion2012-07-301-1/+2
| | | | | | | | -\qmlclass command is now \qmltype -\instantiates is for QML types that have C++ implementation. Change-Id: I8ff5ab355f5e0499c747ed2e63511452f08c4ad3 Reviewed-by: Martin Smith <martin.smith@nokia.com>
* Documentation fixes.Aaron McCarthy2012-06-221-5/+5
| | | | | | | | | | | | | | | This commit fixes the following qdoc errors: - Linking to examles. - execute() -> update() function renaming (broken links). - supportedPlacesFeatures() -> supportsPlaces(). - Broken link to jsondb plugin. - Move log file position source doc into the example. - Various broken links. Change-Id: If45a9a2bfde8c8ef504df3568ec839f0532a28fd Reviewed-by: abcd <amos.choy@nokia.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Specify minor version in \inqmlmodule qdoc command.Aaron McCarthy2012-06-221-1/+1
| | | | | Change-Id: I8c864d4b781381f8771e8557e373b80a079a070f Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Rename QGeoBoundingArea and related classes to QGeoShape.Aaron McCarthy2012-06-211-10/+10
| | | | | | | | | | | | | | | | | | | | | QGeoBoundingArea is used for describing more than just a bounding area. Renaming it to a more appropriate name, QGeoShape. The same is done for subclasses and QML equivalents. In C++: QGeoBoundingArea -> QGeoShape QGeoBoundingCircle -> QGeoCircle QGeoBoundingBox -> QGeoRectangle In QML: BoundingArea -> GeoShape BoundingCircle -> GeoCircle BoundingBox -> GeoRectangle Change-Id: I93c6df8f1b6c5179ed52fd8354a05f709063b1cf Reviewed-by: abcd <amos.choy@nokia.com>
* Set geocode/route model to act only its own replyIan Chen2012-06-071-2/+3
| | | | | | | Task-number: QTBUG-25133 Change-Id: I59fac21ad8384d9dc3b21dbbb72571b883d20fee Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* QAbstractItemModel::setRoleNames is deprecated in favour of a virtual.Aaron McCarthy2012-06-051-4/+7
| | | | | | | Based on https://codereview.qt-project.org/25219. Change-Id: I31f51bb5e532e57fd29a42e2ee6520e5f28d4cb1 Reviewed-by: abcd <amos.choy@nokia.com>
* Populate error information if required parameters (app_id and token) are absent.Vladimir Bezkorovainyi2012-06-041-1/+1
| | | | | Change-Id: Ia110416b1cd64425abcb3ebcf79209b635050b0b Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com>
* Move hard-codded messages into separate file and declare constants for them.Vladimir Bezkorovainyi2012-05-311-8/+8
| | | | | Change-Id: I35a2a5ca9d4c4dc20e291051666bb88f4264ab33 Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com>
* Coding style fixes: whitespace around pointers/referencesAlex Wilson2012-05-151-17/+17
| | | | | | Change-Id: Ie527591e2d9a1578137136fb6664e86c43eed1bf Reviewed-by: Thomas Lowe <thomas.lowe@nokia.com> Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Coding style fixes: whitespace crusadesAlex Wilson2012-05-151-3/+3
| | | | | | | | | | * Single spaces after keywords and before a bracket/brace * Binary operator spacing * Curlies at open of class/function body * Spacing around some type specifiers/declarations Change-Id: Ie516283e7a39c7ce83071ea8125774c76db611f5 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Add cancel() method to GeocodeModel and RouteModel.Aaron McCarthy2012-05-091-0/+14
| | | | | Change-Id: If575f519425da01ad2052bd2d98e36453149d05c Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Fix inconsistent API for clear() and reset() in models.Aaron McCarthy2012-05-091-17/+8
| | | | | | | | Models in Qt Location contained a mixture of clear() and reset() methods. Simplify by only providing a reset() method in all models. Change-Id: I40505793d9b387322a455064fb74e91f8052831f Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Do not completely ignore plugin error messagesCristian Adam2012-05-081-1/+2
| | | | | | | | | If a plugin decides not to create a manager (mapping, geo, places etc) its error message is at least displayed in the debugger output window. Task-number: QTBUG-25672 Change-Id: Ic56544ff06188a701959a88f604f56c9a0ec65dc Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* General documentation issuesWolfgang Beck2012-03-291-5/+35
| | | | | Change-Id: I021ab70e1cbb973817aecbf53b7af0760c5e36c4 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* More qtlocation qml documentation fixesqt-v5.0.0-alpha1Ian Chen2012-03-271-4/+4
| | | | | | | | | | | | | | | | | | MapRectangle: - Added more details to the detailed description section MapPolygon, MapPolyline: - Added description of 'opacity' property MapMouseArea: - Minor grammatical correction, involved -> involve - Added full stop to bullet points in limitations section MapMouseEvent: - Rephrased description of 'accepted' property GeocodeModel: - Added missing fullstop in 'count' property description - Minor grammatical correction to 'limit', 'plugin', and 'query' property descriptions Change-Id: I0a2b8cd570ff1ff082239ed2732fabad1f4e4b85 Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Docs: Bug-6677 fix for items 001-003.Peter Yard2012-03-151-2/+2
| | | | | Change-Id: I8da3e2e445782eccec379a54823d39df7ed8d9f8 Reviewed-by: Alex <alex.blasche@nokia.com>
* QtDeclarative renaming.Aaron McCarthy2012-03-091-2/+2
| | | | | | Change-Id: I0412d2e8e27cf3035712a3c413b5fa99e3a7ad36 Reviewed-by: David Laing <david.laing@nokia.com> Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* New plugin API changes, centralized geoservice feature detectionAlex Wilson2012-03-051-2/+2
| | | | | | | | | | | | | | | This change adapts geoservice plugins to use the new Qt5 plugin API, performing boolean feature detection all through the JSON blobs rather than methods on factories or managers. As a result of this centralisation, it was also necessary to rework the QML API for the Plugin element a little. Some additional changes were made to the declarative places plugin to prevent it crashing due to plugins becoming available later than they did previously. Task-number: QTBUG-24331 Change-Id: I26149987344b67091480449103ab1712c869b2a5 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Remove the usage of deprecated qdoc macros.Casper van Donderen2012-03-021-14/+14
| | | | | | | | | | QDoc now has support for Doxygen style commands for italics, bold and list items. This change applies that change in QDoc to the actual documentation. Task-number: QTBUG-24578 Change-Id: If6af8e9303bdb7c255cce086b93073d927ac2907 Reviewed-by: Alex <alex.blasche@nokia.com>
* Convert QGeoBoundingArea to use value type semantics.Aaron McCarthy2012-02-201-4/+4
| | | | | | | | | | | | | | This simplifies the API while keeping the same functionality. Objects of type QGeoBoundingCircle and QGeoBoundingBox can still be passed around as QGeoBoundingArea without losing their identity. QGeoBoundingArea::isValid(), ::isEmpty() and ::contains() function as one would expect. This change removes the necessity of the application developer to track and delete pointers. Change-Id: I1ee70af90319da4c77225c6a0a03601d5ff431f1 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-301-1/+1
| | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: I00c66363046e475e6924aafd221483c7fad5c0d9 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-231-1/+1
| | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I3850177e14291901e924f9c27ba09e75df00f96a Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Changing example address so that it might workAlex Wilson2012-01-171-1/+1
| | | | | | | | | People have been trying our examples and taking the mock address in Emerald, Oz a bit too literally. Changing to something that might actually work. Change-Id: Ie8f81fab8a5dc90c8f503576da36d31df37c1ffa Reviewed-by: David Laing <david.laing@nokia.com>
* Documentation for GeocodeModel and RouteModelAlex Wilson2012-01-121-13/+62
| | | | | | Task-number: QTBUG-23435 Change-Id: Ia221c5cf39cf88213575b8282d6a8765810074dd Reviewed-by: David Laing <david.laing@nokia.com>
* Change Plugin{} element API to use enums for featuresAlex Wilson2012-01-061-0/+10
| | | | | | | | | | | | | | Notably, this change also sets up Map{} elements to delay probing their set plugin until the plugin is complete, so that requiredFeatures can function correctly without support for changing plugins dynamically. Please note: the necessary docs for these new methods and updates to the already extant docs related to this will be in a separate commit. Change-Id: I36ae230ecdc07e3499331dddb251a331637405cd Reviewed-by: David Laing <david.laing@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-061-1/+1
| | | | | Change-Id: I496795d13a615be8d252ca20a40dd2c5ba84ed60 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>