Skip to content

Commit

Permalink
Enable html5 local storage for qgsexternalresourcewidget and maptips
Browse files Browse the repository at this point in the history
  • Loading branch information
tudorbarascu authored and nyalldawson committed Feb 16, 2019
1 parent 934f706 commit cb3e909
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsexternalresourcewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions src/gui/qgsmaptip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit cb3e909

Please sign in to comment.