Skip to content
Permalink
Browse files

Enable html5 local storage for qgsexternalresourcewidget and maptips

  • Loading branch information
tudorbarascu committed Feb 14, 2019
1 parent 1e431f2 commit 65a54fed06f07e735376f26e5c033b79b9560e46
Showing with 2 additions and 0 deletions.
  1. +1 −0 src/gui/qgsexternalresourcewidget.cpp
  2. +1 −0 src/gui/qgsmaptip.cpp
@@ -231,6 +231,7 @@ void QgsExternalResourceWidget::loadDocument( const QString &path )
if ( mDocumentViewerContent == Web )
{
mWebView->setUrl( QUrl::fromEncoded( resolvedPath.toUtf8() ) );
mWebView->page()->settings()->setAttribute( QWebSettings::LocalStorageEnabled, true );
}
#endif

@@ -84,6 +84,7 @@ void QgsMapTip::showMapTip( QgsMapLayer *pLayer,

mWebView->page()->settings()->setAttribute( QWebSettings::DeveloperExtrasEnabled, true );
mWebView->page()->settings()->setAttribute( QWebSettings::JavascriptEnabled, true );
mWebView->page()->settings()->setAttribute( QWebSettings::LocalStorageEnabled, true );

// Disable scrollbars, avoid random resizing issues
mWebView->page()->mainFrame()->setScrollBarPolicy( Qt::Horizontal, Qt::ScrollBarAlwaysOff );

0 comments on commit 65a54fe

Please sign in to comment.
You can’t perform that action at this time.