Skip to content

Integrated custom check box in filtering controller#4455

Merged
Withalion merged 3 commits intodev/filteringfrom
filter-integrate-custom-segment-controller
Apr 16, 2026
Merged

Integrated custom check box in filtering controller#4455
Withalion merged 3 commits intodev/filteringfrom
filter-integrate-custom-segment-controller

Conversation

@gabriel-bolbotina
Copy link
Copy Markdown
Contributor

Added function to get the checkbox configuration for custom values
Modified MM filters panel to support custom label and values for segment control.

UI:

segment-control-integration.mov

@gabriel-bolbotina gabriel-bolbotina self-assigned this Apr 16, 2026
@gabriel-bolbotina gabriel-bolbotina added enhancement map tools Something is wrong with recording, geometry editing, splitting, stakeout, .. labels Apr 16, 2026
@gabriel-bolbotina gabriel-bolbotina added this to the 2026.2.0 milestone Apr 16, 2026
Comment on lines +90 to +91
property var representationForTrue: root.customValueForTrue != null ? root.customValueForTrue : true
property var representationForFalse: root.customValueForFalse != null ? root.customValueForFalse : false
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't be necessary or was there some specific case where it didn't work?

Have a look here: Falsy and Truthy values in JS

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only use case is if we want to keep integer custom values or not. If we have 0 and 1 as custom options

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay let's keep it then how it was

Comment thread app/qml/filters/MMFiltersPanel.qml Outdated
Comment thread app/filtercontroller.cpp Outdated
Comment thread app/filtercontroller.cpp
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 16, 2026

Coverage Report for CI Build 24508389648

Coverage decreased (-0.1%) to 58.315%

Details

  • Coverage decreased (-0.1%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 43 coverage regressions across 3 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

43 previously-covered lines in 3 files lost coverage.

File Lines Losing Coverage Coverage
mm/app/filtercontroller.cpp 41 4.85%
mm/app/layerfeaturesmodel.cpp 1 80.47%
mm/app/position/providers/simulatedpositionprovider.cpp 1 91.67%

Coverage Stats

Coverage Status
Relevant Lines: 15099
Covered Lines: 8805
Line Coverage: 58.32%
Coverage Strength: 101.17 hits per line

💛 - Coveralls

Copy link
Copy Markdown
Contributor

@Withalion Withalion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just reverse the representationForXXX conditions to how they were before and you can merge

@github-actions
Copy link
Copy Markdown

📦 Build Artifacts Ready

OS Status Build Info Workflow run
macOS Build Build failed or not found. #6700
linux Build 📬 Mergin Maps 67111 x86_64 Expires: 15/07/2026 #6711
win64 Build 📬 Mergin Maps 58951 win64 Expires: 15/07/2026 #5895
Android Build 📬 Mergin Maps 801211 APK [armeabi-v7a] Expires: 15/07/2026 #8012
📬 Mergin Maps 801211 APK [armeabi-v7a] Google Play Store #8012
Android Build 📬 Mergin Maps 801251 APK [arm64-v8a] Expires: 15/07/2026 #8012
📬 Mergin Maps 801251 APK [arm64-v8a] Google Play Store #8012
iOS Build 📬 Build number: 26.04.895111 #8951

@github-actions
Copy link
Copy Markdown

📦 Build Artifacts Ready

OS Status Build Info Workflow run
macOS Build 📬 Mergin Maps 67021 dmg Expires: 15/07/2026 #6702
linux Build 📬 Mergin Maps 67131 x86_64 Expires: 15/07/2026 #6713
win64 Build 📬 Mergin Maps 58971 win64 Expires: 15/07/2026 #5897
Android Build 📬 Mergin Maps 801451 APK [arm64-v8a] Expires: 15/07/2026 #8014
📬 Mergin Maps 801451 APK [arm64-v8a] Google Play Store #8014
Android Build 📬 Mergin Maps 801411 APK [armeabi-v7a] Expires: 15/07/2026 #8014
📬 Mergin Maps 801411 APK [armeabi-v7a] Google Play Store #8014
iOS Build 📬 Build number: 26.04.895311 #8953

@Withalion Withalion merged commit 5222fcf into dev/filtering Apr 16, 2026
11 of 12 checks passed
@Withalion Withalion deleted the filter-integrate-custom-segment-controller branch April 16, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement map tools Something is wrong with recording, geometry editing, splitting, stakeout, ..

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants