summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Remove 3DItem and VideoItem items from mapviewer example.Michal Klocek2015-01-297-224/+4
| | | | | Change-Id: I2b5fb05a6cab0b944bd3e3a3dff94a15a12d91be Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Allow HTML based copyright notices.Aaron McCarthy2015-01-272-2/+9
| | | | | | | | | | | | | | | | In addition to the image based map copyright/attribution notice allow a geo service provider to provide a HTML string which is rendered and displayed. Add copyrightLinkActivated signal to the map to enable the application to launch the url in an external browser. The geo service providers are no longer in control of the position of the copyright notice. For the time being it will be placed at the bottom left of the map. Change-Id: I49bfc58a70e9254220903d5103c714c08f327e8b Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Better names for incorrectly named Map functions.Aaron McCarthy2015-01-201-2/+3
| | | | | | | | | | | | | | | | | | | The functions to transform between coordinates and position on screen were incorrect. Documentation and function names did not match implementation. New functions with better names have been added and documentation updated to match implementation. Old invalid functions have been deprecated. Related private symbols have been renamed to match their purpose. [ChangeLog][QtLocation][Important Behavior Changes] Functions in Map item which are used transform between coordinates and screen position have been deprecated due to confusing naming. Change-Id: Ic501cd81220414800bc2247eae9f510954ee469f Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Cleanup qRegisterMetaType<T>() callsAlex Blasche2015-01-151-1/+1
| | | | | | | The non-parameter version is much more secure. Change-Id: I70612c60d780a972bbf9c852f50f7b0c6f2a0402 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
* Adds mapping manager error handling to qmlMichal Klocek2015-01-131-4/+14
| | | | | | | | 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>
* Fix listing of plugins in mapviewer exampleMichal Klocek2015-01-091-24/+26
| | | | | | | | | | * list all location plugins which support mapping in mapviewer, adjust tools menu according to supported features * list providers in the same order * select provider in provider menu at startup Change-Id: Ic5fcc207929caab70b95f7204fd6a3665feeb23a Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Updated the request URL to use https instead of httpVenu2014-09-262-3/+4
| | | | | | | | | | | | | | The request to search the photos on flickr needs SSL, without which the search fails to get the required results. Also updated the example's GridDelegate to scale the photos based on pixelDensity. Otherwise the photos look too small on high DPI devices. Task-number: QTBUG-37203 Change-Id: I5f3385e99868bdfae6e62d1ade5acea2ac536b65 Reviewed-by: Topi Reiniö <topi.reinio@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Put pre-defined GPS log file into qrc fileAlex Blasche2014-09-173-5/+9
| | | | | | | | This fixes shadow build breaks and not found log file on OSX when using app bundles. Change-Id: Ib92cb2973c4687b356f8f35d4dbce2c39ef70b17 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Merge remote-tracking branch 'gerrit/5.3' into 5.4Alex Blasche2014-09-083-10/+75
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: Ib269ecd9a61ebe25da23a0423682b591f7c399c3
| * weatherinfo: improve update behavior of weatherinfo example5.3Fawzi Mohamed2014-09-033-10/+75
| | | | | | | | | | | | | | | | Ensure that new data will get processed, and that error can be recovered, while avoiding an excessive load on the server. Change-Id: I1c3a0b17eb0cc31553013e953d7dcf46060daef1 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* | Merge branch '5.3' into 5.4Alex Blasche2014-08-142-1/+19
|\ \ | |/ | | | | Change-Id: I02ab19530354f656823e59bb43a6fc4786b2f189
| * Don't hang weatherinfo if position source has an error.Alex Blasche2014-08-142-1/+19
| | | | | | | | | | | | | | | | We continue with the simulation mode. Task-number: QTBUG-40702 Change-Id: I130b0080a198a218803986fb7ff06fdd0b83186a Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* | Use QStringLiteral whereever possibleAlex Blasche2014-05-153-5/+5
|/ | | | | | | This replaces a lot of old QLatin1String cases Change-Id: I47aec711f5e00de68bde6c2c8ee09506f577cfd4 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Bump all qml code to QtLocation 5.3Alex Blasche2014-02-2632-51/+51
| | | | | | | It is the baseline for all subsequent additions. Change-Id: Ia56da45b8b92dd0224dbeff97976cd06aa25d943 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Fix declarative_ui tests.Aaron McCarthy2014-02-111-0/+1
| | | | | | | | | | | | | | | | | | | Coordinates for map items located outside the view port cannot be converted to and from screen coordinates. During tests pan the map so that the items under tests are inside the view port. Tests for panning the map and dragging map items were failing because mapping between coordinates and screen position only works for visible screen positions. The MouseAreas under test did not have preventStealing set, which was causing the map to pan slightly prior to item drag being detected. Stop gesture detection for a touch point when the mouse is grabbed by a child item. Task-number: QTBUG-31797 Change-Id: I42a801d50c194c6fe9629f3b0de606b406ad8b8c Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Add new Satellite Information exampleAlex Blasche2014-02-077-1/+831
| | | | | | | | | | | [ChangeLog][QtPositioning] New SatelliteInfo example added. The example displays the signal strength of surrounding satellites. The example employs a demo mode on those platforms which don't provide satellite information Change-Id: I573266c7a4429c0d2f1bcdfeb01af52ad02efba7 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Add new markers at touched location.Aaron McCarthy2014-02-061-0/+1
| | | | | | | | | | | | New markers added in the mapviewer example were being placed at the top left hand corner of the displayed map, just out of view. The user had to pan the map to see the newly added marker. Changed to position new markers at the location touched by the user to activate the context menu. Change-Id: If328e04cfd651a75fb91d599bedbd1129e761c7b Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Prevent the map stealing mouse events from the zoom slider.Aaron McCarthy2014-02-061-0/+1
| | | | | | | | Fixes using the slider to zoom the map. Task-number: QTBUG-34237 Change-Id: I78b005030c3d869e63b9391e41d05ff28caa3cf5 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Remove the GeoMapMouseAreaFabian Bumberger2014-02-066-14/+13
| | | | | | | | | | | | | | | | | I don't see a reason for keeping this. First of all, only half of it is implemented. Second we can have the same behavior with a normal MouseArea. The only advantage a MapMouseArea has is that mouse events are only received in the boundaries of the parent map item. However with a bit of work in the parent map item we can have this behavior as well for a normal mouse area. The only thing we are eventually loosing is the geocoordinate property of the MapMouseEvent. But this can be easily obtained with the "toCoordinate" function in the Map item. Change-Id: Icb176ee7d7c2881df714ab3191fa1f7f5c8915e2 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Remove offset attribute from place search requests.Aaron McCarthy2014-01-202-17/+2
| | | | | | | | | Not all service providers support arbitrary search offsets. The offset attribute has been removed, instead service providers can supply a previous and next search query in the form of a QPlaceSearchRequest. Change-Id: If68e969b06f909f3fa62718656cbef70d1bf84a6 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Don't rely on qt_example_installs for complete make install rulesAlex Blasche2013-11-291-2/+3
| | | | | | | | | simplelog.txt was not deployed when running make install from outside Qt source tree. Change-Id: I420a85fc5f74fb1bfc1b3f63e1f88cf0b0e2a0f9 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Fix and cleanup of make install related rules in QtLocation examplesAlex Blasche2013-11-294-10/+13
| | | | | | Change-Id: I9ef400e22d46e60d50eed785a71e656a0f93fa26 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Fix make install rules for all examples in QtPositioningAlex Blasche2013-11-293-16/+13
| | | | | | | | This was highlighted during the testing of the Qt 5.2.0 package. Change-Id: Iab1e6f5f1e1a8ceb62fc44658ec12fb131ccad65 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Fix cut of string when weather string is longerAlex Blasche2013-11-271-1/+4
| | | | | | | Task-number: QTBUG-34910 Change-Id: I90a1748496b55b2e69db5c94fa217f79d43c176f Reviewed-by: Jim Ehrismann <jehrismann@blackberry.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Fix install path for examplesv5.2.0-rc1v5.2.0Alex Blasche2013-11-185-8/+8
| | | | | | | | | The QtLocation examples are still broken when running make install but the module is not part of the release anyway. Task-number: QTBUG-34907 Change-Id: Ie3a35daae3df39747a70ed4bce430ec1a73cbe3d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Reorder example dir structure according to Qt conventionAlex Blasche2013-11-18170-12/+17
| | | | | | | | Causes undesirable example structure in Qt release package Task-number: QTBUG-34907 Change-Id: I47e2205aa6faef388792146b36cf6ae6cae863da Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Add QGeoPositionInfoSource::NoPositioningMethods enum valueAlex Blasche2013-10-301-4/+4
| | | | | | | | | | This simplifies various position backend implementations as they don't have to cast 0 to QGeoPositionInfoSource::PositioningMethods At the same time we synchronize the same QML enum and its value name. Change-Id: Ic0b258161a6319da238b265ad5d9926349f461f1 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Add NoError to the various Positioning Source classes.Alex Blasche2013-10-301-1/+1
| | | | | | | This became apparent while implementing the BB10 and Android backends. Change-Id: I54e2c0fce63021b9fad0c544777792aed726608b Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Add proper version to QtPositioning and its QML API.Alex Blasche2013-10-147-7/+7
| | | | | | | | | The QML API remains available under 5.0 though. Change-Id: I037b82e5b12825db610e8458d6c82122ecde4f44 Reviewed-by: Erik Mattsson <erik.mattsson@appello.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Split QtLocation into QtPositioning and QtLocationAlex Blasche2013-09-0213-43/+47
| | | | | | | | | | | | 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 QML Flickr Location applicationAlex Blasche2013-08-161-7/+7
| | | | | | | An incorrect property name was used. Change-Id: I75c19bc4914abb5401cc02944081a19da78b38b3 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Improve weather app icon layouts to decrease chance of overlapAlex Blasche2013-08-142-3/+3
| | | | | | | Change-Id: I2f236d0bda50f92840f908305916a082fb59700c Reviewed-by: QTBUG-18405 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Change weatherinfo data source from Google to openweathermap.orgAlex Blasche2013-08-146-192/+246
| | | | | | | | | The Google API was turned off mid 2012. Task-number: QTBUG-31706 Change-Id: Ia7a04ed2e0f6e411f6a65765c59892be4a14ddb5 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Remove locationd/npe and maemo/meego position backendsAlex Blasche2013-08-061-4/+0
| | | | | | | | They were Nokia specific and do not have any value anymore. Change-Id: I08507aff295df5ead1fa8b5b770514150a2e608a Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Support explore functionality.Aaron McCarthy2013-07-262-17/+70
| | | | | | | | | | | | | | | | | | | | | Add support for Nokia's explore functionality in places. This adds the ProposedSearchResult search result type. The proposed search result has a QPlaceSearchRequest, which can be submitted to QPlaceManager::search() to perform the proposed search. This has the added advantage that any arbitrary search request can be returned as a search result. To facilitate this further a search context field has been added to the place search request. This field can be used by backends to store additional search context. Other relevant fields should also be filled in. This allows additional search context to be kept. The Nokia v2 places implementation has be updated to use the explore feature and to return ProposedSearchResults as well as place results. Task-number: QTBUG-24874 Change-Id: Ib20c5a8c8a60e6bf16f38dcd75961a752b8b1b32 Reviewed-by: Alex <alexander.blasche@digia.com>
* Remove accidentally inserted char invalidating qmlAlex Blasche2013-07-161-1/+1
| | | | | | Change-Id: I0e29b6ed30e18badd29f4bc1c13a1b3b569e253d Reviewed-by: Jim Ehrismann <jehrismann@blackberry.com> Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Fix QtLocation documentationAlex Blasche2013-07-121-1/+1
| | | | | | | | | | 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>
* Remove jsondb related docs and example codeAlex Blasche2013-06-194-7/+8
| | | | | | | Task-number: QTBUG-31741 Change-Id: I0ee10f459d79607f06d37ae7317c2d54a8d7d56a Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Update copyright year to 2013Sergio Ahumada2013-06-1378-78/+78
| | | | | Change-Id: I5b0cb7d56997ad7b91c073b3e02b31d0368fdcfa Reviewed-by: Alex <alexander.blasche@digia.com>
* Add routing support to OSM plugin.Aaron McCarthy2013-02-221-1/+2
| | | | | Change-Id: I2020e744c0da9598713186d60ddcbdd2f5336510 Reviewed-by: Alex <ablasche@gmail.com>
* Change copyright from 2012 to 2013Rainer Keller2013-01-173-3/+3
| | | | | Change-Id: I61ae1bd1a9f68d120d4e11635f306374b1f494d0 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* make use of qtHaveModule()Oswald Buddenhagen2013-01-082-3/+3
| | | | | | Change-Id: Ifd6b6040bd00357bf658f5b51215d4208823bab1 Reviewed-by: Tasuku Suzuki <stasuku@gmail.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Fix the QML list interface.Friedemann Kleint2012-10-241-1/+7
| | | | | | | | | | | | The QML list interface was changed, so that there is now a read only constructor and the default properties are removed. This is because the original interface was very runtime centric, like other parts in QML. The new interface was changed for the needs of the QML designer and debugger. Task-number: QTBUG-9390 Change-Id: I1ed36c275fc7f8767956e55ad9afddcb293a970c Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-2481-486/+486
| | | | | | | | 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>
* Fix coordinate handling in exampleabcd2012-08-291-5/+5
| | | | | | | | In particular coordinates were not handled correctly for the dialog used to edit places. Change-Id: Ic1d1876c84c0c9eb57104d7a483800b1c3cc7fe8 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Convert GeoShape, GeoRectangle and GeoCircle into QML value types.v5.0.0-beta1Aaron McCarthy2012-08-281-25/+19
| | | | | | | | | | | | | 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-2414-148/+89
| | | | | | | | | | | | | | 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>
* Fix typoabcd2012-08-231-1/+1
| | | | | Change-Id: I792b01ca419ed3a55edaac231e2aed23246f0c15 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Refactor quickstart documentation to reference simple examplesabcd2012-08-178-1/+345
| | | | | | | | | | | | | | | -Introduce places_list and places_map examples As long as app id and token parameters have been supplied to place-list.qml and places-map.qml, those examples are self-contained runnable scripts. -Refactor quickstart structure into an introduction of concepts and then common use cases. Reference snippets from the above examples, as opposed to a file containing unrelated unrunnable code snippets. -Add screenshots showing the results of the snippet code. Change-Id: I402995708a0040441ea079ba0fcfdee3ae61ac40 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Only build qml components/examples if qtdeclarative is presentCorentin Jabot2012-08-021-1/+2
| | | | | | | Change-Id: I4ceac7bb7027b14f67175c66af142b0b6a9f7ad6 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Alex <alex.blasche@nokia.com>