Skip to content

Commit

Permalink
WebView -> WebEngineView
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Aug 18, 2020
1 parent 5af25d8 commit 79121b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/qml/FeatureForm.qml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import QtQuick.Controls.Styles 1.4
import QtGraphicalEffects 1.0
import QtQml.Models 2.11
import QtQml 2.3
import QtWebView 1.14
import QtWebEngine 1.10

import org.qgis 1.0
import org.qfield 1.0
Expand Down Expand Up @@ -279,17 +279,17 @@ Page {
color: 'grey'
}

WebView {
WebEngineView {
id: htmlItem
height: 1
anchors {
left: parent.left
rightMargin: 12
right: parent.right
top: htmlLabel.bottom
}
onLoadingChanged: {
if ( !loading )
runJavaScript("document.body.offsetHeight", function(result) { htmlItem.height = ( result + 20 ) * screen.devicePixelRatio; } );
onContentsSizeChanged: {
height = contentsSize.height
}
}

Expand Down

0 comments on commit 79121b0

Please sign in to comment.