summaryrefslogtreecommitdiffstats
path: root/src/location/location.pro
Commit message (Collapse)AuthorAgeFilesLines
* Fix dragging items out of map boundsPaolo Angelelli2017-07-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | In 5.9.0 map items are clipped against the visible region. This implies that their geometry is also clipped against the visible region. This is problematic in ::geometryChanged, since the old geometry is always clipped in this way. This patch clips items against a "projectable" region instead, that is the part of the map that is in front of the camera. Since this can produce very large vertices, mapbox earcut 3rd party library is pulled in, to replace qTriangulate that only supports coordinates up to 1<<21. This patch also contains a fix for earcut.hpp to make it build also on QNX6.6 Task-number: QTBUG-61727 Change-Id: Iffc95fdae88fef982c1eb86db567b326b5e51057 Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Revert "Fix dragging items out of map bounds"Paolo Angelelli2017-07-191-1/+0
| | | | | | | | This reverts commit 2ab93acd9751b3ffe2c36a4a0e37dc792686a08f. Reason being: not passing QNX6 bot Change-Id: If45fe095b6e6959f7c40e3e0ed7a14d278bbb230 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Fix dragging items out of map boundsPaolo Angelelli2017-07-171-0/+1
| | | | | | | | | | | | | | | | | | | | | In 5.9.0 map items are clipped against the visible region. This implies that their geometry is also clipped against the visible region. This is problematic in ::geometryChanged, since the old geometry is always clipped in this way. This patch clips items against a "projectable" region instead, that is the part of the map that is in front of the camera. Since this can produce very large vertices, mapbox earcut 3rd party library is pulled in, to replace qTriangulate that only supports coordinates up to 1<<21. Task-number: QTBUG-61727 Change-Id: I7449e755a4848a2b2107c5de4e27821e3e887bfb Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Mark qtlocation as warning-freeThiago Macieira2017-04-121-0/+3
| | | | | | | | | This will turn -Werror on for our tested compilers, to avoid introducing new warnings. Change-Id: I27b55fdf514247549455fffd14b17ae6dce9976f Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Moving location qml implementation to location/declarative*Paolo Angelelli2017-01-261-5/+12
| | | | | | | | | | | | 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>
* Add clipping for rotated/tilted Map ItemsPaolo Angelelli2017-01-261-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds proper rotation/tilting support to Map Items. To do so, clipping is now performed in wrapped mercator space instead of screen space. This prevents projection of geo coordinates that ended behind the camera, and that would be projected incorrectly by the projection transformation. This patch therefore does not use the screen clipping code any longer (clipPathToRect), since the geometry has already been clipped. The downside is that updateSourcePoints is now necessary for any viewport change. This would be necessary anyway in presence of tilt or rotation. NB: Handling of MapQuickItems with zoomLevel set is still TODO. Future work: 1) Optimize updateSourcePoints by pre-computing the mercator projection of the geometry, and let updateSourcePoints do only the wrapping/clipping/projection-to-screen operations. 2) Remove updateScreenPoints altogether Change-Id: Ie0d3dbef68d48ac97a596d40240d0ac126c0efaf Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Fix cache mixing with high-dpi and low-dpi osm providersPaolo Angelelli2016-10-051-0/+3
| | | | | | | | | | | | | | | | | This cache fixes the cache mixing problem that has been introduced with the osm high dpi tiles support. high dpi providers fall back to low dpi ones and ultimately to hardcoded providers (also low dpi), and can also be enabled/disabled via plugin parameter, thus leaving the cache for a given map id dirty for the next run. With this patch high dpi tiles are named differently from low dpi ones. If high-dpi providers are selected, but become not available, the cache can also change the tileset to load at runtime Change-Id: I229692da07c1fc61c58fb0b6fae6ec5af16e43a7 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Add qtconcurrent dependency to locationPaolo Angelelli2016-09-211-0/+5
| | | | | | | | | | | | | Deploying on android fails to deploy the osm plugin, because it depends on qtconcurrent, and the android package generator apparently does not recursively resolve dependencies. One way to solve this is to make location depend on qtconcurrent on android builds, so that libQt5Concurrent.so will be added to the android package Change-Id: I781e2a0c2051cf04002c85dce669947619873aa3 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Make QtLocation compile with pre-compiled headersAlex Blasche2014-08-121-1/+0
| | | | | | | | | | | | | For some mystical reason Polygon is redefined by an unknown Windows header preventing this file from compiling if Qt is compiled with pre-compiled headers. The workaround is to simply rename this private type. Discussed-in: http://lists.qt-project.org/pipermail/development/2014-May/017125.html Task-number: QTBUG-39692 Change-Id: If71e1a12394dfde7729d0505417a37b9fd407c82 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@digia.com>
* Disable headers precompilationSergio Ahumada2014-06-171-0/+1
| | | | | | | | | Workaround to make location compile while the actual issue is investigated. Task-number: QTBUG-39692 Change-Id: I0320181594b0b87ed037827dc8cf3608ba5c776e Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Add missing MODULE_PLUGIN_TYPES to location.proAlbin Olsson2014-02-101-0/+2
| | | | | | | | MODULE_PLUGIN_TYPES was missing from location.pro It was needed to deploy QtLocation to Android device. Change-Id: Ic93a3711039d679fa2d859c6d54599b121464b82 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Make geo coordinates animatable in QML.Albin Olsson2013-10-111-1/+1
| | | | | | | | | | | | | | | | | | | | Interpolation logic in AnimatableCoordinate has been moved around so that QGeoCoordinates can be animated directly by QPropertyAnimation. A new QML type has been added, 'CoordinateAnimation', for animating coordinates in QML. This type follows the pattern of 'ColorAnimation' and other specializations of 'PropertyAnimation'. QDoubleVector2D, QDoubleVector3D and QGeoProjection has been moved to QtPositioning Testcase for CoordinateAnimation has been added to declarative_ui. AnimatableCoordinate and QGeoCoordinateInterpolator are redundant and have been removed. Change-Id: I0809da566e1800274384f9c5337df65623d1e61a Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Improve definition of projects belonging to QtPositioning & QtLocationAlex Blasche2013-09-161-1/+1
| | | | | | | | | | | This enables clean builds of qtlocation repo even if Qt3D is not available. In such cases only QtPositioning related projects should be build. There is a small build fix as well as some quick related includes changed from proper includes to forward declarations. Change-Id: Ifa8a9315beabcc1f64be219f8fa55236bf4ce42f Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Split QtLocation into QtPositioning and QtLocationAlex Blasche2013-09-021-40/+2
| | | | | | | | | | | | 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>
* QGeoAreaMonitor becomes loadable via plugins.Alex Blasche2013-08-221-2/+0
| | | | | | | | | The polling-based default implementation is separated out into its own plugin. Task-number: QTBUG-31960 Change-Id: Ife25f6a83dd51f32fcd9ee3bfde1ca51291c78e4 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Fix QtLocation documentationAlex Blasche2013-07-121-11/+11
| | | | | | | | | | 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>
* Only link against QtGui when having maps enabled.Volker Krause2013-04-181-1/+1
| | | | | Change-Id: Id5586438f129401ac923fa55e4340ce267add5ed Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Compile if there is no Qt3d.Volker Krause2013-03-071-1/+1
| | | | | | | | | | This disables all the map features and only leaves you with positioning, which also happens to be very useful if that's the subset you need on an embedded device with very constrained disk space. Change-Id: I0d94dfe81b0d52b98e1a07f80db744ecc51aade2 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Enable the "#include <QLocation>" camel-case headerSze Howe Koh2013-02-101-2/+2
| | | | | | | | | | | | Rename qtlocation.h/cpp -> qlocation.h/cpp, and use #pragma qt_class() to generate the camel-case header during compilation. Part of the Header Consistency Project (http://lists.qt-project.org/pipermail/development/2012-October/007570.html) Change-Id: I2899c9ca0969c37365bd7e1da5d5a15e9632f5f0 Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* Update docs after modularization of docsTor Arne Vestbø2012-10-111-2/+2
| | | | | | | | The global files now live in qtbase only, and are made available to the other modules via the $QT_INSTALL_DOCS variable. Change-Id: I4f50f27ded5e0d63e964770d78e92b71f39af680 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* centralize load(qt_build_config)s in .qmake.confOswald Buddenhagen2012-09-131-2/+0
| | | | | Change-Id: Icbf4870866053bb6812f6ff0084744d6c2566e6f Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* Convert Coordinate into a QML coordinate value type.Aaron McCarthy2012-08-241-1/+1
| | | | | | | | | | | | | | 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 module dependenciesOswald Buddenhagen2012-08-111-2/+2
| | | | | | | | the pri files contain QT+= statements, so they must be included before loading qt_module. Change-Id: If9097b80d5f765547f0f7c4675a0adce7980cab3 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* follow rename of qt_module_config.prf to qt_module.prfOswald Buddenhagen2012-08-111-1/+1
| | | | | Change-Id: I3b7b8cff675067001bb70a223b5b59630d048f5e Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* Generate QtLocation docs the way all modules do italex2012-06-281-0/+2
| | | | | Change-Id: Id24f6db2a53d5fbd0a3fdf5f493096e0c4838d7d Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* build system cleanupsOswald Buddenhagen2012-06-251-9/+2
| | | | | | | | | | | | | | | - load(qt_module) => load(qt_build_config) - remove: - CONFIG+=module (obsolete) - abuse of QMAKE_PKGCONFIG_REQUIRES - QT_BUILD_*_LIB defines (automated now) - code relating to module version headers (automated now) - %mastercontent assignment (automated now) - pointless QPRO_PWD assignments - pointless DEFINES+=QT_MAKEDLL Change-Id: I3f129ee42289aa409418eb9d29b1902cc40370f9 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* auto-generate module prisOswald Buddenhagen2012-06-251-2/+1
| | | | | Change-Id: Iec7f771bbce096d60d201e1e476d27374316161c Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Rename QGeoBoundingArea and related classes to QGeoShape.Aaron McCarthy2012-06-211-11/+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>
* QtLocation: Fix dependencies, remove network.Friedemann Kleint2012-05-291-1/+1
| | | | | | | | - The library does not seem to depend on network. - Remove unneeded dependencies on QtWidgets. Change-Id: Icdbe8a00c746a1ec0d7512f74e0f2566148fdb6e Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com>
* remove useless include pathOswald Buddenhagen2012-04-041-2/+0
| | | | | Change-Id: I1270ad1134a2d37d00a8c308b7230781fa7cd394 Reviewed-by: Alex <alex.blasche@nokia.com>
* Update positioning sources to use new plugin styleAlex Wilson2012-03-121-67/+2
| | | | | | | | | | | | | | | Notably, also splits the default sources that were previously compiled into the library, out into their own plugins. This follows a similar pattern to the geoservices change. We also drop the "plugin whitelisting" feature in favour of a simple Priority value in the plugin JSON -- the whitelist provides no additional security over this solution on any of our platforms. Task-number: QTBUG-24331 Change-Id: I62a9c940157ad2e33a9a575fa09633b98656b276 Reviewed-by: Alex <alex.blasche@nokia.com>
* Introduce locationd interface library to npe positioning backendCarsten Bürger2012-02-241-2/+7
| | | | | Change-Id: I11c7b62a188141db687c0ac9d0ffb77330fa14ca Reviewed-by: Alex <alex.blasche@nokia.com>
* Convert QGeoBoundingArea to use value type semantics.Aaron McCarthy2012-02-201-0/+1
| | | | | | | | | | | | | | 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>
* Fix build by using JsonDbCompat.Aaron McCarthy2012-02-131-1/+1
| | | | | Change-Id: I21ee4fedbf38fb6c8e675aa98982518005726bc6 Reviewed-by: abcd <amos.choy@nokia.com>
* Remove use of deprecated VariantStream APIMartin Zielinski2012-02-011-7/+2
| | | | | | | | | | | | Also removes the dependency on mt-client, as this is the last usage of it in the code. Removes config.tests as they are testing for Qt modules or Qt Addon modules which can be tested for in the .pro files with !isEmpty(QT.foo.name). Change-Id: I2a621d73ef76de51154ad9ce80fb2c84881ae3de Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Renames the new mapping classes.David Laing2012-01-051-1/+0
| | | | | | | | | | | Also moves them into src/location/maps. We still need to take a closer look at which classes are public and which are private, and then do the associated file renaming and addition of private header warnings. Change-Id: Ide0225ad5d5dc23834baaa9f6841646e4c92de39 Reviewed-by: Juha Vuolle <juha.vuolle@nokia.com>
* Replace use of QLatin1Constant with QStringLiteral.Aaron McCarthy2011-12-201-1/+0
| | | | | Change-Id: I8f9fa805d7edfefd783788ea78ad824715041982 Reviewed-by: Alex <alex.blasche@nokia.com>
* Move qplace .h, _p.h and .cpp files into src/location/placesabcd2011-12-201-3/+0
| | | | | | | | The place files were in src/location as a holdover from when qgeoplace was used. Moved it into the places directory instead. Change-Id: Ide98fba615c8ff5a73493c81eaefc19b21f2203a Reviewed-by: Alex <alex.blasche@nokia.com>
* Disable NPE positioning backend when building for simulator.Aaron McCarthy2011-12-131-1/+1
| | | | | Change-Id: I0e4239ddf26861e42401925aa8294e767bcb5410 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* replace mtcore by mt-qt5-libCarsten Bürger2011-12-121-2/+2
| | | | | Change-Id: I67ac29575c05eb2587c220a897f60a2fc6a01e74 Reviewed-by: Alex <alex.blasche@nokia.com>
* Adapted the simulator backend for the new Qt Simulatorvbologa2011-11-171-3/+2
| | | | | Change-Id: I59d8570ea56dccc71ccad8afa6550d7c89b21c8a Reviewed-by: Alex <alex.blasche@nokia.com>
* QtLocation doesn't support Symbian anymore.alex2011-11-101-51/+0
| | | | | Change-Id: I1f90ecd180ce08976338fc9683a7cef5c1389f59 Reviewed-by: Alex <alex.blasche@nokia.com>
* Remove qmobilitypluginsearch.halex2011-11-101-2/+1
| | | | | | | | | We use QFactoryLoader from now on. This doubles up the keys() and providerName() methods on the two factory interfaces but this will be fixed by a separate change. Change-Id: I5f2cee40f44e0760d40f87ebd53d2ca15cfc2ec5 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* QGeoSatelliteInfoSource implementation for NPE backendCarsten Bürger2011-11-091-2/+5
| | | | | Change-Id: I1d3e7e6fe5f7a4d9393350f0733edc274d4fe5c3 Reviewed-by: Alex <alex.blasche@nokia.com>
* First step of removal of Q_LOCATION_EXPORT macro from qglobal.halex2011-10-171-1/+2
| | | | | | | | | Each module handles each its own exports. We need to change the QtLocation version, remove the qglobal.h define and then add it back under the old name in QtLocation Change-Id: I7530a251b78402215a466cd55a33ec24664786b7 Reviewed-by: Alex <alex.blasche@nokia.com>
* Improve naming consistency in Places API.Aaron McCarthy2011-10-101-1/+0
| | | | | | | 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-2/+4
| | | | | | | 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 first version of NPE backendalex2011-09-271-0/+11
| | | | | | | Change-Id: I007b73a98ee7123c7361b8d00173ee93aa2955fe Reviewed-on: http://codereview.qt-project.org/5119 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alex <alex.blasche@nokia.com>
* Fix public headers.Aaron McCarthy2011-09-261-1/+3
| | | | | | | | | | | Add QT_{BEGIN,END}_HEADER Add QT_{BEGIN,END}_NAMESPACE Add QT_MODULE(Location) Change-Id: Ib12682b847d9439c0e55e78fdf8a71ee8406c282 Reviewed-on: http://codereview.qt-project.org/5435 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Rename QGeoPlace to QPlaceabcd2011-09-231-3/+3
| | | | | | | | | | | | | | | | | | 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>