Skip to content

Commit

Permalink
Spix, will you behave?
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jul 24, 2024
1 parent db3a72e commit 06e13f4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/build-for-linux.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

cmake -S . -B $(git rev-parse --show-toplevel)/build-x64-linux -GNinja -DWITH_VCPKG=ON -DENABLE_TESTS=ON
cmake -S . -B $(git rev-parse --show-toplevel)/build-x64-linux -GNinja -DWITH_VCPKG=ON -DWITH_SPIX=ON -DENABLE_TESTS=ON
cmake --build $(git rev-parse --show-toplevel)/build-x64-linux
7 changes: 6 additions & 1 deletion src/qml/qgismobileapp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -3936,7 +3936,8 @@ ApplicationWindow {
QFieldGuide {
id: mapCanvasTour
baseRoot: mainWindow
objectName: "QFieldGuideMapCanvasTour"
objectName: 'mapCanvasTour'

steps: [{
"title": qsTr("Menu"),
"description": qsTr("You can open dashboard here to interact with the project's legends and map theme, or start digitizing by activating the editing mode. Long-pressing the button also gives you immediate access to the main menu."),
Expand All @@ -3963,4 +3964,8 @@ ApplicationWindow {
settings.setValue("/QField/showMapCanvasGuide", false);
}
}

function blockGuides() {
mapCanvasTour.blockGuide();
}
}
2 changes: 1 addition & 1 deletion test/spix/smoke_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_wms_layer(app, screenshot_path, screenshot_check, extra, process_alive)
"""
assert app.existsAndVisible("mainWindow")

app.invokeMethod("mainWindow/QFieldGuideMapCanvasTour", "blockGuide", [])
app.invokeMethod("mainWindow", "blockGuides", [])

# Arbitrary wait period to insure project fully loaded and rendered
time.sleep(4)
Expand Down
Binary file modified test/testdata/projection_dataset.gpkg
Binary file not shown.

0 comments on commit 06e13f4

Please sign in to comment.