Skip to content
Permalink
Browse files

Fix build without webkit

  • Loading branch information
elpaso committed Apr 10, 2019
1 parent 9ce1093 commit cce1d6973d3d926fa4449363a56533e0448378a8
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/editorwidgets/qgshtmlwidgetwrapper.cpp
@@ -18,9 +18,9 @@
#include "qgsmessagelog.h"
#include "qgsexpressioncontextutils.h"
#include "qgsapplication.h"

#include "qgswebframe.h"


QgsHtmlWidgetWrapper::QgsHtmlWidgetWrapper( QgsVectorLayer *layer, QWidget *editor, QWidget *parent )
: QgsWidgetWrapper( layer, editor, parent )
{
@@ -45,6 +45,7 @@ void QgsHtmlWidgetWrapper::initWidget( QWidget *editor )
return;

mWidget->setHtml( mHtmlCode );
#ifdef WITH_QTWEBKIT
const int horizontalDpi = qApp->desktop()->screen()->logicalDpiX();
mWidget->setZoomFactor( horizontalDpi / 96.0 );

@@ -54,6 +55,7 @@ void QgsHtmlWidgetWrapper::initWidget( QWidget *editor )
auto docHeight { page->mainFrame()->contentsSize().height() };
mWidget->setFixedHeight( docHeight );
}, Qt::ConnectionType::UniqueConnection );
#endif

}

0 comments on commit cce1d69

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