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

add enabled state for annotation items #55798

Merged
merged 6 commits into from
Jan 17, 2024
Merged

Conversation

3nids
Copy link
Member

@3nids 3nids commented Jan 9, 2024

The idea is to be able to control visibility per items in an annotation layer.

@3nids 3nids requested a review from nyalldawson January 9, 2024 10:32
@github-actions github-actions bot added this to the 3.36.0 milestone Jan 9, 2024
@3nids
Copy link
Member Author

3nids commented Jan 9, 2024

(this doesn't seem to work as expected, items are still rendered)

@nyalldawson
Copy link
Collaborator

@3nids is this planned to be API only? I'm unsure how we'd expose a way to re-enable items after they've been disabled in the gui...

@3nids
Copy link
Member Author

3nids commented Jan 9, 2024

Yes, it's API only.

@3nids
Copy link
Member Author

3nids commented Jan 12, 2024

Sorry, my bad, this is working as expected and ready to be merged.

@nyalldawson
Copy link
Collaborator

Sorry, my bad, this is working as expected and ready to be merged.

image

@3nids
Copy link
Member Author

3nids commented Jan 12, 2024

what would you expect as a test, a blank image check?

@nyalldawson
Copy link
Collaborator

@3nids

Maybe rendering a layer containing a mix of enabled/disabled annotations

Copy link

github-actions bot commented Jan 12, 2024

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit a633cd5)

@3nids 3nids closed this Jan 12, 2024
@3nids 3nids reopened this Jan 12, 2024
@3nids 3nids force-pushed the annotation-item-enabled branch from 7dc9e36 to 4ab050e Compare January 12, 2024 21:03

This comment was marked as outdated.

@3nids 3nids force-pushed the annotation-item-enabled branch from 4ab050e to 269b24b Compare January 15, 2024 08:22
@3nids 3nids added the Squash! Remember to squash this PR, instead of merging or rebasing label Jan 15, 2024
@3nids 3nids requested a review from nyalldawson January 16, 2024 12:29
@3nids
Copy link
Member Author

3nids commented Jan 16, 2024

ok, now with a basic test

@nyalldawson
Copy link
Collaborator

Approved -- but I think that mask image is out of date and should be removed? It seems to be no resemblance to the rendered image

@3nids 3nids enabled auto-merge (squash) January 17, 2024 08:29
@3nids 3nids merged commit d296f0e into qgis:master Jan 17, 2024
30 checks passed
@3nids 3nids deleted the annotation-item-enabled branch January 17, 2024 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Squash! Remember to squash this PR, instead of merging or rebasing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants