summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Binner <stephan.binner@basyskom.com>2017-04-18 20:41:40 +0200
committerStephan Binner <stephan.binner@basyskom.com>2017-04-19 08:34:28 +0000
commit9e12ec43e9490651f43f9ae9ff1c3e3bb4834754 (patch)
tree74748c6dc0ce2c1faecc0dc100a579b503aec7d6
parentc367b08df4778bf2b83eb37f0caa79e97fbc01b4 (diff)
downloadqtlocation-9e12ec43e9490651f43f9ae9ff1c3e3bb4834754.tar.gz
Fix build for -no-feature-cssparser
Change-Id: I06c0c1ad4744cd91a116906d7e7725f05cc35688 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
-rw-r--r--src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice.cpp b/src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice.cpp
index b1393105..1101eb18 100644
--- a/src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice.cpp
+++ b/src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice.cpp
@@ -235,8 +235,10 @@ void QDeclarativeGeoMapCopyrightNotice::rasterizeHtmlAndUpdate()
void QDeclarativeGeoMapCopyrightNotice::createCopyright()
{
m_copyrightsHtml = new QTextDocument(this);
+#if QT_CONFIG(cssparser)
if (!m_styleSheet.isEmpty())
m_copyrightsHtml->setDefaultStyleSheet(m_styleSheet);
+#endif
// The default 4 makes the copyright too wide and tall.
m_copyrightsHtml->setDocumentMargin(0);