diff options
author | Stephan Binner <stephan.binner@basyskom.com> | 2017-04-18 20:41:40 +0200 |
---|---|---|
committer | Stephan Binner <stephan.binner@basyskom.com> | 2017-04-19 08:34:28 +0000 |
commit | 9e12ec43e9490651f43f9ae9ff1c3e3bb4834754 (patch) | |
tree | 74748c6dc0ce2c1faecc0dc100a579b503aec7d6 | |
parent | c367b08df4778bf2b83eb37f0caa79e97fbc01b4 (diff) | |
download | qtlocation-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.cpp | 2 |
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); |