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

[gui] Fix enable/disable diagrams (as well as subdiagrams of a stacked diagram) #59098

Merged
merged 3 commits into from
Oct 17, 2024

Conversation

gacarrillor
Copy link
Member

@gacarrillor gacarrillor commented Oct 15, 2024

Followup #58568

New checkbox Enable diagram:

image

Current situation: The diagram's enabled setting cannot be set manually.
This PR: Adds a checkbox to read and set such a setting in the diagram properties dialog/panel.

Current situation: Subdiagrams can be disabled in the main panel of a stacked diagram. However, once a subdiagram is being edited, its disabled setting is no longer kept and there is no visual clue for the user about the enabled/disabled setting status.
This PR: Adds consistency to handling the enabled setting, i.e., changes in the status are visible and easily toggled via the new checkbox.

GUI consistency: I'm adhering here to similar widgets that have been employed in several QGIS modules before. For instance, for enabling/disabling labels in a rule-based labeling or in the Layout map grid widget.

Screencast:

vokoscreenNG-2024-10-15_12-49-54.mp4

@gacarrillor gacarrillor added the GUI/UX Related to QGIS application GUI or User Experience label Oct 15, 2024
@github-actions github-actions bot added this to the 3.40.0 milestone Oct 15, 2024
Copy link

github-actions bot commented Oct 15, 2024

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit 2a61d31)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit 2a61d31)

src/gui/vector/qgsdiagramproperties.h Outdated Show resolved Hide resolved
src/gui/vector/qgsdiagramproperties.h Outdated Show resolved Hide resolved
@gacarrillor gacarrillor force-pushed the fix_enabled_diagram_setting branch from 70bca94 to 8c8dcfc Compare October 16, 2024 00:20
@nyalldawson
Copy link
Collaborator

@gacarrillor can you rebase please?

@gacarrillor gacarrillor force-pushed the fix_enabled_diagram_setting branch from 8c8dcfc to 2a61d31 Compare October 17, 2024 00:23
@gacarrillor
Copy link
Member Author

gacarrillor commented Oct 17, 2024

@gacarrillor can you rebase please?

@nyalldawson, rebasing, thanks for enforcing that in 440064a!

@nyalldawson nyalldawson merged commit cc6feb1 into qgis:master Oct 17, 2024
29 checks passed
@gacarrillor gacarrillor deleted the fix_enabled_diagram_setting branch October 17, 2024 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Diagrams GUI/UX Related to QGIS application GUI or User Experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants