diff options
author | Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> | 2016-08-22 11:30:46 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> | 2016-08-22 11:30:47 +0200 |
commit | 7de4002c5bcf89ee9be5df32ae7b05bb671605e6 (patch) | |
tree | 91bd98db027dcb765c140c1d63f879a7d5373d6e | |
parent | f76300ede0472e2fdbb80322295d306b7662b71d (diff) | |
parent | ce23be575db8024d65b780ce3c9cf115658c964a (diff) | |
download | qtlocation-7de4002c5bcf89ee9be5df32ae7b05bb671605e6.tar.gz |
Merge dev into 5.8
Change-Id: I3280b4863a50f648ca6de2e0524eea63e6c75676
4 files changed, 10 insertions, 4 deletions
diff --git a/src/imports/location/qdeclarativegeomapcopyrightsnotice.cpp b/src/imports/location/qdeclarativegeomapcopyrightsnotice.cpp index 289ea3d9..7b5a5765 100644 --- a/src/imports/location/qdeclarativegeomapcopyrightsnotice.cpp +++ b/src/imports/location/qdeclarativegeomapcopyrightsnotice.cpp @@ -148,7 +148,11 @@ void QDeclarativeGeoMapCopyrightNotice::copyrightsChanged(const QString ©rig m_copyrightsImage.fill(qPremultiply(qRgba(255, 255, 255, 128))); QPainter painter(&m_copyrightsImage); - m_copyrightsHtml->drawContents(&painter); + //m_copyrightsHtml->drawContents(&painter); // <- this uses the default application palette, that might have, f.ex., white text + QAbstractTextDocumentLayout::PaintContext ctx; + ctx.palette.setColor(QPalette::Text, QColor(QStringLiteral("black"))); + ctx.palette.setColor(QPalette::Link, QColor(QStringLiteral("blue"))); + m_copyrightsHtml->documentLayout()->draw(&painter, ctx); setWidth(m_copyrightsImage.width()); setHeight(m_copyrightsImage.height()); diff --git a/src/imports/location/qdeclarativepolylinemapitem.cpp b/src/imports/location/qdeclarativepolylinemapitem.cpp index a85bbc76..32791b29 100644 --- a/src/imports/location/qdeclarativepolylinemapitem.cpp +++ b/src/imports/location/qdeclarativepolylinemapitem.cpp @@ -506,7 +506,9 @@ void QDeclarativePolylineMapItem::setMap(QDeclarativeGeoMap *quickMap, QGeoMap * QJSValue QDeclarativePolylineMapItem::path() const { - QQmlContext *context = QQmlEngine::contextForObject(parent()); + QQmlContext *context = QQmlEngine::contextForObject(this); + if (!context) + return QJSValue(); QQmlEngine *engine = context->engine(); QV4::ExecutionEngine *v4 = QQmlEnginePrivate::getV4Engine(engine); diff --git a/src/plugins/geoservices/osm/qgeotileproviderosm.h b/src/plugins/geoservices/osm/qgeotileproviderosm.h index cdff7997..f396b3b5 100644 --- a/src/plugins/geoservices/osm/qgeotileproviderosm.h +++ b/src/plugins/geoservices/osm/qgeotileproviderosm.h @@ -113,7 +113,7 @@ public: return; int sortedOffsets[3]; - std::copy(offset, offset + 4, sortedOffsets); + std::copy(offset, offset + 3, sortedOffsets); sort2(sortedOffsets[0] ,sortedOffsets[1]); sort2(sortedOffsets[1] ,sortedOffsets[2]); sort2(sortedOffsets[0] ,sortedOffsets[1]); diff --git a/src/positioning/doc/src/qtpositioning.qdoc b/src/positioning/doc/src/qtpositioning.qdoc index 1ce33085..d5b0eb39 100644 --- a/src/positioning/doc/src/qtpositioning.qdoc +++ b/src/positioning/doc/src/qtpositioning.qdoc @@ -62,7 +62,7 @@ The Qt Positioning API provides positioning information via QML and C++ interfaces. Currently the API is supported on \l {Qt for Android}{Android}, \l {Qt for iOS}{iOS}, -\l {Qt for OS X}{OS X}, +\l {Qt for macOS}{\macos}, \l {Qt for Linux/X11}{Linux} (using \l {http://www.freedesktop.org/wiki/Software/GeoClue}{GeoClue version 0.12.99}), \l {Qt for Windows}{Windows} (with GPS receivers exposed as a serial port providing NMEA sentences), |