Skip to content
Permalink
Browse files

Enable html5 local storage for qgsexternalresourcewidget and maptips

  • Loading branch information
tudorbarascu authored and nyalldawson committed Feb 14, 2019
1 parent 934f706 commit cb3e9094b6f337a0fabbfc22d0b708fae3374acc
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

@@ -82,6 +82,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 cb3e909

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