Skip to content

Commit

Permalink
Update SDK catch new modules
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Aug 19, 2020
1 parent 54a9efd commit f739e28
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ IF (ANDROID)
ADD_CUSTOM_TARGET(assets ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/android-build/assets/assets.zip")
ENDIF (ANDROID)

FIND_PACKAGE(Qt5 COMPONENTS Test Concurrent Core Qml Gui Xml Positioning Widgets PrintSupport Network Quick Svg OpenGL Sql PrintSupport Sensors REQUIRED)
FIND_PACKAGE(Qt5 COMPONENTS Test Concurrent Core Qml Gui Xml Positioning Widgets PrintSupport Network Quick Svg OpenGL Sql PrintSupport Sensors WebView REQUIRED)

ADD_SUBDIRECTORY(3rdparty/tessellate)
ADD_SUBDIRECTORY(src/qgsquick)
Expand Down
2 changes: 1 addition & 1 deletion sdk.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
osgeo4a_version=20200818
osgeo4a_version=newmodules
2 changes: 1 addition & 1 deletion src/app/app.pro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include( ../../qgis.pri )
include( ../../version.pri )
include( ../../assets.pri )

QT += widgets concurrent xml positioning printsupport svg sql opengl sensors quick quickcontrols2 qml
QT += widgets concurrent xml positioning printsupport svg sql opengl sensors quick quickcontrols2 qml webview

android {
QT += androidextras
Expand Down
4 changes: 3 additions & 1 deletion src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <QLabel>
#include <QDialog>
#include <QApplication>
#include <QtWebView/QtWebView>

#include "qgsapplication.h"
#include "qgslogger.h"
Expand Down Expand Up @@ -101,9 +102,10 @@ int main( int argc, char **argv )
app.setPluginPath( QApplication::applicationDirPath() );
app.setPkgDataPath( AndroidPlatformUtilities().packagePath() );
#else
QtWebView::initialize();
QgsApplication app( argc, argv, true );
QSettings settings;

QSettings settings;
app.setThemeName( settings.value( "/Themes", "default" ).toString() );
app.setPrefixPath( CMAKE_INSTALL_PREFIX, true );
#endif
Expand Down
1 change: 1 addition & 0 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ TARGET_LINK_LIBRARIES(qfield_core
Qt5::Positioning
Qt5::Sql
Qt5::Concurrent
Qt5::WebView
${QGIS_CORE_LIBRARY}
${QGIS_ANALYSIS_LIBRARY}
)
Expand Down
2 changes: 1 addition & 1 deletion src/qml/FeatureForm.qml
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ Page {
}
onLoadingChanged: {
if ( !loading )
runJavaScript("document.body.offsetHeight", function(result) { htmlItem.height = ( result + 20 ) * screen.devicePixelRatio; } );
runJavaScript("document.body.offsetHeight", function(result) { htmlItem.height = ( result + 20 ) } );
}
}

Expand Down

0 comments on commit f739e28

Please sign in to comment.