Skip to content

Commit

Permalink
Fix compilation when WITH_QTWEBKIT=FALSE
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 authored and nyalldawson committed Jun 30, 2021
1 parent 6e83672 commit cb1b8d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/src/gui/testqgshtmlwidgetwrapper.cpp
Expand Up @@ -13,7 +13,9 @@
* *
***************************************************************************/

#ifdef WITH_QTWEBKIT
#include <QWebFrame>
#endif

#include "qgstest.h"

Expand Down Expand Up @@ -91,7 +93,9 @@ void TestQgsHtmlWidgetWrapper::testExpressionEvaluate()

htmlWrapper->setFeature( f );

#ifdef WITH_QTWEBKIT
QCOMPARE( webView->page()->mainFrame()->toPlainText(), expectedText );
#endif

QgsProject::instance()->removeMapLayer( &layer );
}
Expand Down

0 comments on commit cb1b8d0

Please sign in to comment.