Skip to content

Commit

Permalink
Fix #23519 wms identify with WITH_QTWEBKIT=OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Dec 12, 2022
1 parent eda87f5 commit 66b999e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/core/qgswebview.h
Expand Up @@ -128,6 +128,20 @@ class CORE_EXPORT QgsWebView : public QTextBrowser

void pageLoadFinished( bool ok );

public slots:

void setHtml( const QString &text )
{
QTextBrowser::setHtml( text );
emit pageLoadFinished( true );
}

void setText( const QString &text )
{
QTextBrowser::setText( text );
emit pageLoadFinished( true );
}

private:
QWebSettings *mSettings = nullptr;
QWebPage *mPage = nullptr;
Expand Down

0 comments on commit 66b999e

Please sign in to comment.