-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[fix] Improve ownership handling and documentation for Stacked Diagrams #59123
[fix] Improve ownership handling and documentation for Stacked Diagrams #59123
Conversation
🪟 Windows buildsDownload Windows builds of this PR for testing. 🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
@nyalldawson, do you know how to get rid of the error in code layout?
|
…tackedDiagramProperties
Add an explicit empty constructor for mDiagramRenderers -- that indicates that you're intentionally NOT copying that field |
… for mDiagramRenderers, indicating that we won't copy that field
…st one (if it exists) in the stacked diagram as a basis for the new single one Before this commit, the stacked diagram properties were taken as a basis, losing valuable diagram settings in the process. Note this reverts commit 2f9a0758b309ef162d6390b7411cba71af3375be
…from the main diagram combobox This helps us to better differentiate between a stacked bars diagram and a stacked diagram (using the diagram name alone was a bit confusing: e.g., Stacked).
@nyalldawson, |
Followup #58568 (probably the last one in this series)
Improves ownership handling of sub renderers in
QgsStackedDiagramRenderer
andQgsStackedDiagramPropertiesModel
.Adds documentation on ownership transfer when receiving or returning sub renderers.
Other adjustments:
subDiagram
bysubDiagramRenderer
when we actually refer to renderers.auto
for non-complex types.Diagram type
column to names from the main diagram combobox. This helps us to better differentiate between a stacked bars diagram and a stacked diagram (using the diagram name alone was a bit confusing: e.g.,Stacked
).