summaryrefslogtreecommitdiffstats
path: root/src/imports/location/declarativeplaces/qdeclarativereviewmodel.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Moving location qml implementation to location/declarative*Paolo Angelelli2017-01-261-183/+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>
* Fix documenation in 'places' exampleMichal Klocek2015-05-291-1/+1
| | | | | Change-Id: Id224d73d2b68a947bc6c7121175a2f83bd0059fa 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>
* 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>
* 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 qdoc references following shift of example dirsAlex Blasche2013-11-181-1/+1
| | | | | | | Task-number: QTBUG-34907 Change-Id: Id119523528c7cd2419be638048f4faf7bf0f2cb9 Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Doc: Fixed broken Location links due to version number.v5.2.0-alpha1Jerome Pasion2013-09-251-4/+4
| | | | | | | | | | | -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>
* 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>
* General doc fixes.Peter Yard2012-08-141-1/+1
| | | | | 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-7/+0
| | | | | | | | | | | | | | | 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>
* QAbstractItemModel::setRoleNames is deprecated in favour of a virtual.Aaron McCarthy2012-06-051-8/+12
| | | | | | | Based on https://codereview.qt-project.org/25219. Change-Id: I31f51bb5e532e57fd29a42e2ee6520e5f28d4cb1 Reviewed-by: abcd <amos.choy@nokia.com>
* Coding style fixes: whitespace around pointers/referencesAlex Wilson2012-05-151-1/+1
| | | | | | Change-Id: Ie527591e2d9a1578137136fb6664e86c43eed1bf Reviewed-by: Thomas Lowe <thomas.lowe@nokia.com> Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Docs: Bug-6690 fixes. General doc fixes.Peter Yard2012-05-031-5/+17
| | | | | | Change-Id: I93680ae2da913b67e8a2c22826f43f84ecb4c863 Reviewed-by: abcd <amos.choy@nokia.com> Reviewed-by: Peter Yard <peter.yard@nokia.com>
* General documentation issuesWolfgang Beck2012-03-291-2/+5
| | | | | Change-Id: I021ab70e1cbb973817aecbf53b7af0760c5e36c4 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Minor fixes to places qml documentationIan Chen2012-03-271-3/+3
| | | | | | | | | | | | CategoryModel: - Minor correction in 'status' property description, Error -> error PlaceSearchModel, PlaceSearchSuggestionModel: - Minor grammatical correction to 'Ready' enumerated value description ReviewModel: - Corrected descriptions of supplier, user, and attribution roles Change-Id: Ica73bf8f992b0e4536bfae297aeccd8ef3072f34 Reviewed-by: abcd <amos.choy@nokia.com>
* Remove the usage of deprecated qdoc macros.Casper van Donderen2012-03-021-30/+30
| | | | | | | | | | 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>
* Docs: QTBUG-24066, Location doc typos.Peter Yard2012-02-131-1/+1
| | | | | Change-Id: I71d7ab7e074eef2000f10463f3bf75cdb9bf6048 Reviewed-by: David Laing <david.laing@nokia.com>
* Places qml overviewabcd2012-02-071-0/+1
| | | | | Change-Id: Ie9d65c79fa643ef5412e838c262fd9c0cc2687e4 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>
* Add clarification about rich textabcd2011-11-171-1/+1
| | | | | Change-Id: Ifbbae53c80e90db013609baff78f94aae9e5bbd4 Reviewed-by: Alex <alex.blasche@nokia.com>
* Remove sourceUrl from contentabcd2011-11-091-4/+0
| | | | | | | Not required anymore. Change-Id: I8851ea90b656728e2a45e5c5a7a3c6783510459c Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Fix missing links in places element docs.Aaron McCarthy2011-11-071-1/+1
| | | | | Change-Id: I1fe1709ed3630f4ca67baa4c74d1cda79db65702 Reviewed-by: Peter Yard <peter.yard@nokia.com>
* Rename Review::content and Editorial::content to ::textabcd2011-11-041-5/+6
| | | | | | | | | | | | | | There already exists a content object so ::content() it is not appropriate. ::description() is unintuitive. ::text() is more natural. Note that the text could either be plain text or rich text. QLabel and QTextEdit have a setText() function and the text format is automatically detected. This makes using ::text() a natural fit. Change-Id: I77719202d0b210ae75a91d6867c3411c9c5ec51c Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Adds documentation for some places emements.Aaron McCarthy2011-11-011-33/+22
| | | | | | | | | | Add or improves element documentation for Category, CategoryModel EditorialModel, ImageModel, ReviewModel, PlaceAttribute, ExtendedAttributes, Icon, PlaceSearchModel, RecommendationModel, TextPredictionModel, Rating, User and BoundingCircle. Change-Id: Id067f207793aa1dfc11009ba4c29c165d54c8934 Reviewed-by: abcd <amos.choy@nokia.com>
* Update structure of QtLocation documentation.Aaron McCarthy2011-10-251-2/+3
| | | | | | | | | Separate out into sections for C++ and QML. Mark all classes as "since QtLocation 5.0" as there has been many API changes since Qt Mobility. Change-Id: Ie71c5f7cb8341e76d41b9fefce4781979f3e898c Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Improve naming consistency in Places API.Aaron McCarthy2011-10-101-31/+13
| | | | | | | 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>
* Fix missing/outdated license headers.Aaron McCarthy2011-09-261-1/+1
| | | | | | | 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>
* Move common supplier functionality into base class.Aaron McCarthy2011-08-301-23/+2
| | | | | | | | Change-Id: I7898b8b59d85c2d7392ea490ada63d4a26792f38 Reviewed-on: http://codereview.qt.nokia.com/3838 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>
* Use QUrl instead of QString for URL properties/data.Aaron McCarthy2011-08-251-1/+1
| | | | | | | | Change-Id: I6165be414937fefc11c560ed2517d7c7ec87c959 Reviewed-on: http://codereview.qt.nokia.com/3537 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>
* Add a common base class for content models.Aaron McCarthy2011-08-251-248/+73
| | | | | | | | | | Removes duplicate code in review and image models. Change-Id: I0f2657e5da79455153b53d53f22092c7079705ee Reviewed-on: http://codereview.qt.nokia.com/3535 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 Review element.Aaron McCarthy2011-08-251-18/+132
| | | | | | | | | | Expose as roles in the review model. Change-Id: Ief401d3639c457b9f65166b76be3df54216cf299 Reviewed-on: http://codereview.qt.nokia.com/3455 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>
* Use content mechanism to retrieve reviewsabcd2011-08-241-15/+61
| | | | | | | | | | | | | | | | | | | | | | This means we no longer need the qplacereviewreply or the paginationlist. We also create a QPlaceContentRequest class to specialize in requesting content. It follows the same pattern that QPlaceContent does where the private classes use inheritance to mirror the public classes so that we only have a single d pointer instance per class(as opposed to a dpointer for QPlaceRequest and a dpointer for QPlaceContentRequest). QPlaceSeachRequest has been modified like this as well. Also in the nokia plugin we rename the qplaceimagereplyimpl class to the qplacecontentreplyimpl class. We use this to get the reviews as well as images and we no longer need the qplacereviewreplyimpl class. Change-Id: I0aa1254a4df3d136bf81f9faf0f6ec06a0773100 Reviewed-on: http://codereview.qt.nokia.com/3305 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: abcd <qt_abcd1@ovi.com>
* Rename QPlaceQuery & QPlaceSearchQuery to *Request insetead of *Queryabcd2011-08-161-1/+1
| | | | | | | | | | The term request is more consistent with existing classes like QGeoRouteRequest and QNetworkRequest. Change-Id: If627769d8a2a7b1fa2b802f2e7d7da8a98b006ff Reviewed-on: http://codereview.qt.nokia.com/2984 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: abcd <qt_abcd1@ovi.com>
* Remove plugin property from media and review models.Aaron McCarthy2011-08-151-31/+6
| | | | | | | | | | | These elements do not need an explicit plugin property as the one associated with the place property can be used. Change-Id: Iba30667792642cc0c47e6579f291d092c33cabc4 Reviewed-on: http://codereview.qt.nokia.com/2928 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>
* Incorporate places/nokia plugin into geoservices/nokia plugin.Aaron McCarthy2011-07-291-6/+53
| | | | | | | | | | | | This brings the usage of the Places API inline with the rest of the functional groups in QtLocation. Removes the PlaceManager element. Change-Id: I6d7259fe7ea1e55dcf97b95025e0c78748e82b9f Reviewed-on: http://codereview.qt.nokia.com/2245 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Add ReviewModel element.Aaron McCarthy2011-07-261-0/+219
Use a data model for fetching and handling place reviews. Change-Id: I066d97bd8c4b7897c2a471da346f135ea69524c3 Reviewed-on: http://codereview.qt.nokia.com/2012 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>