Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commit data on scale changed for advanced snap configuration min/max scale #39133

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

troopa81
Copy link
Contributor

@troopa81 troopa81 commented Oct 2, 2020

Description

Fixes #39031 : commitData signal must be sent so the item view is aware that model needs to be updated

@obrix Is there any special reason why you use a QgsScaleWidget instead of a QgsScaleComboBox. The former just adds a button to get current scale from canvas but was not set as visible.

@troopa81 troopa81 added Bug Either a bug report, or a bug fix. Let's hope for the latter! GUI/UX Related to QGIS application GUI or User Experience labels Oct 2, 2020
@github-actions github-actions bot added this to the 3.16.0 milestone Oct 2, 2020
@obrix
Copy link

obrix commented Oct 2, 2020

@troopa81 I don't think there was a specific reason. If you replace it by the combobox directly with no issue, you can probably also replace it in QgsSnappingWidget for the global min/max scale.

@troopa81 troopa81 force-pushed the fix_snapconfigscale_commitdata branch from 13cc874 to 3a19d56 Compare October 2, 2020 15:13
@troopa81
Copy link
Contributor Author

troopa81 commented Oct 2, 2020

@obrix I guess I was wrong, replacing QgsScaleWidget with QgsScaleComboBox breaks the advanced snapping configuration flotatting window (though it's the same widgets). So I keep the QgsScaleWidget and just add the fix for the model update.

@nyalldawson nyalldawson merged commit 55c0f93 into qgis:master Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! GUI/UX Related to QGIS application GUI or User Experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scale dependent snapping does not activate as long as it displays the scale as "1:xxxxxx"
3 participants