summaryrefslogtreecommitdiff
path: root/tests/auto/qplace
Commit message (Collapse)AuthorAgeFilesLines
* Updated license headersAntti Kokko2016-01-201-17/+12
| | | | | | | | | | | From Qt 5.7 -> tools & applications are lisenced under GPL v3 with some exceptions, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new GPL-EXCEPT header instead of LGPL21 one (in those files which will be under GPL 3 with exceptions) Change-Id: Ic9ed595cc04b1fbbefb8ec8cac20c1480681857a Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API.Friedemann Kleint2015-08-281-1/+0
| | | | | Change-Id: I1eb987fdd48e33bd1d71da7f9efb9f02e05de3c9 Reviewed-by: Alex Blasche <alexander.blasche@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>
* Update BSD and LGPLv2.1 licensesAlex Blasche2015-02-181-3/+3
| | | | | | | | - Removes subsidiary extension from Qt Company - Replaces remaining occurrences of Digia in BSD and LGPLv2.1 Change-Id: I7467a6744af7d1c3aef3c29118f219399162a18c Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
* Update all LGPLv2.1 license headers in source to latest versionAlex Blasche2015-02-151-4/+4
| | | | | | | | | | | This affects all QtPositioning related code and the test code in the entire repository. The Qt Company is set as new copyright owner and the copyright year is bumped to 2015. Change-Id: Iee0e990680683c20f5920e49cc1063ea9349e2cd Reviewed-by: Lars Knoll <lars.knoll@digia.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>
* Use QStringLiteral whereever possibleAlex Blasche2014-05-151-53/+53
| | | | | | | This replaces a lot of old QLatin1String cases Change-Id: I47aec711f5e00de68bde6c2c8ee09506f577cfd4 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Fix some typosSergio Ahumada2014-03-031-1/+1
| | | | | Change-Id: If46057e48040fda7b61b81e735c171daf2cc7d06 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Update copyright year to 2013Sergio Ahumada2013-06-131-1/+1
| | | | | Change-Id: I5b0cb7d56997ad7b91c073b3e02b31d0368fdcfa Reviewed-by: Alex <alexander.blasche@digia.com>
* Rename namespace QtLocation -> QLocationSze Howe Koh2013-02-051-5/+5
| | | | | | | | | | | | | | Main code, tests and docs updated. For consistency (with minimal disruption to the Qt 5.0.0 release), namespaces with a "Qt" prefix were renamed. Part of the Header Consistency Project (http://lists.qt-project.org/pipermail/development/2012-October/007570.html) Change-Id: Ic728cbbe39e0140dca1cdee24257dda095c9a478 Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.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>
* Set the Qt API level to compatibility mode in all tests.Thiago Macieira2012-08-011-0/+1
| | | | | | | | | | Qt 5.0 beta requires changing the default to the 5.0 API, disabling the deprecated code. However, tests should test (and often do) the compatibility API too, so turn it back on. Task-number: QTBUG-25053 Change-Id: Ie0f96417cf765796e5288769563df7845086546a Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Engine should specify unknown total content count on getDetailsabcd2012-03-161-7/+17
| | | | | | | Task-number: QTBUG-24646 Change-Id: I81f347dffd7c5bf52c08ca254faf3da999ab32fc Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* isEmpty() functions for place data classesJean Gressmann2012-02-291-0/+114
| | | | | | | | | Added isEmpty() method to QPlace, QPlaceSupplier, and QPlaceRatings. Bugfix for QTBUG-23557 Change-Id: I49d71ac2428003ef3127bbab2e46f83a8bb6ecd3 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>
* Update copyright year in license headers.Jason McDonald2012-01-061-1/+1
| | | | | Change-Id: I496795d13a615be8d252ca20a40dd2c5ba84ed60 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Improve coverage of QPlace unit testabcd2011-12-201-30/+106
| | | | | | | | | | | | Also make the attribute types in the test lower case because the standard attributes are meant to be lower case. (The qml looks better this way e.g. place.extendedAttributes.smoking instead of place.extendedAttributes.Smoking) Change-Id: I33837ad1fdf4d1c028daa7742e1e4a6d2b6432d3 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Rename Rating to Ratingsabcd2011-11-171-4/+4
| | | | | | | | | | | | | | | | | | It may be possible that other rating values could be added to the rating object e.g. a count for how many gave a rating 1 a count for now many gave a rating of 2 or perhaps ratings for different aspects of a place eg. service cleanliness etc. Therefore ratings should be used instead or rating. Change-Id: I8a46646942dcd938bcee31921cabfa9df9862adc Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Refacor extended attributes not to use a map.abcd2011-11-041-47/+28
| | | | | | | | Implementation detail shouldn't be exposed, not using the map also results in less code for the developer. Change-Id: I767cd60c4b614e86d84069d1737a4c5993a63875 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Refactor contacts.abcd2011-10-261-21/+40
| | | | | | | | | | | | | | | | | | | The REST server now supports labels for each contact value, so now it makes sense to incorporte the ContactValue class. ContactValue = user visible label + value(phone number, email etc) We use a map type implementation where the key for the map is the contact type and the value is a list of contact values. The first element of each list becomes the primary value. Eg the primaryPhone() field references the first element in the list of phone numbers. The setters for the primary___() functions has been removed. Url has also been renamed to Website to keep in line with LBSP. Change-Id: I9382a8286c5348bd1eb93d93f25088dfdf321852 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Improve naming consistency in Places API.Aaron McCarthy2011-10-101-21/+18
| | | | | | | Change-Id: Ic902592c3367a76fc0e23c237712224abbf31703 Reviewed-on: http://codereview.qt-project.org/6206 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Place visibility scope.Aaron McCarthy2011-10-041-1/+13
| | | | | | | Change-Id: Id1f5d248fd17554b17211d48facf3f6b85565853 Reviewed-on: http://codereview.qt-project.org/5341 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Add attribution field to Place.Aaron McCarthy2011-09-301-0/+11
| | | | | | | | | | | | | The attribution is a rich text string that some place providers may require to be displayed when a place is shown to an end user. Also remove unnecessary semi-colons for the declarative place header Change-Id: Id5b70a1962e80afce536fc2f01674db8456116ce Reviewed-on: http://codereview.qt-project.org/5350 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Convert place description into a place content.Aaron McCarthy2011-09-261-15/+52
| | | | | | | | Change-Id: I0ced086aea91189f6e74c2e2ca13776d79b537d5 Reviewed-on: http://codereview.qt-project.org/5274 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: abcd <qt_abcd1@ovi.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Remove unnecessary API elements from QPlace and Place.Aaron McCarthy2011-09-261-27/+0
| | | | | | | | Change-Id: Iac577b229ffa1b82a35921f748a74e5655cf3d25 Reviewed-on: http://codereview.qt-project.org/5196 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: abcd <qt_abcd1@ovi.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Fix missing/outdated license headers.Aaron McCarthy2011-09-261-0/+41
| | | | | | | Change-Id: I9dbdf6f4974167a2a4229bd3bd798f7de36bfc10 Reviewed-on: http://codereview.qt-project.org/4939 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Remove additionalData from QPlaceabcd2011-09-231-13/+0
| | | | | | | | | | | | | | | | | | | additionalData is now superseded by place attributes. In the qjsondetailsparser processAdContentPackages used to put some content into additional data. indicating whether a place type was an "ad_prime_plus" place. For the Qt 5 use case, for 3rd party developers this doesn't seem necessary and neither does it seem part of the new REST API. Also it seems that the search type has erroneously been placed into the additionalData. This is not necessary as the SearchResult already has the type defined. Change-Id: I35545b48666700a08aa93bfa0fa90ef2f301163e Reviewed-on: http://codereview.qt-project.org/5213 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Rename QGeoPlace to QPlaceabcd2011-09-232-0/+443
This is to be more consistent with the other place classes like QPlaceManager. The alternative would be for everything to have the QGeo prefix e.g QGePlaceManager, QGeoPlaceCategory, the Geo prefix does not help much in avoiding name collisions since 'Place' shouldn't collide with anything anyway. For classes like routing the Geo prefix is necessary to give context for what's being routed. Change-Id: Ibcf6e6909a41ea0ce2c402e24b427496d06bf243 Reviewed-on: http://codereview.qt-project.org/5210 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>