File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 18
18
#include " qgsmessagelog.h"
19
19
#include " qgsexpressioncontextutils.h"
20
20
#include " qgsapplication.h"
21
-
22
21
#include " qgswebframe.h"
23
22
23
+
24
24
QgsHtmlWidgetWrapper::QgsHtmlWidgetWrapper ( QgsVectorLayer *layer, QWidget *editor, QWidget *parent )
25
25
: QgsWidgetWrapper( layer, editor, parent )
26
26
{
@@ -45,6 +45,7 @@ void QgsHtmlWidgetWrapper::initWidget( QWidget *editor )
45
45
return ;
46
46
47
47
mWidget ->setHtml ( mHtmlCode );
48
+ #ifdef WITH_QTWEBKIT
48
49
const int horizontalDpi = qApp->desktop ()->screen ()->logicalDpiX ();
49
50
mWidget ->setZoomFactor ( horizontalDpi / 96.0 );
50
51
@@ -54,6 +55,7 @@ void QgsHtmlWidgetWrapper::initWidget( QWidget *editor )
54
55
auto docHeight { page->mainFrame ()->contentsSize ().height () };
55
56
mWidget ->setFixedHeight ( docHeight );
56
57
}, Qt::ConnectionType::UniqueConnection );
58
+ #endif
57
59
58
60
}
59
61
You can’t perform that action at this time.
0 commit comments