-
-
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
added possibility to add custom actions for the group-nodes in the layer tree #59585
base: master
Are you sure you want to change the base?
Conversation
🪟 Windows buildsDownload Windows builds of this PR for testing. 🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. |
It would be great to be able to add a custom action in the default menu (right click in blank area of layer tree). |
cce776c
to
9ae57b3
Compare
I agree, though i think it would be better to create a separate issue. |
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
9ae57b3
to
7d49dd4
Compare
7d49dd4
to
1b99119
Compare
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
Would love to see this implemented. If there was a way to upvote or something, that would be great. I'm hoping that by commenting, it attracts attention. |
1b99119
to
bfba646
Compare
Description
Currently, you can create a custom action in the context menu of layer-tree only for different types of layers. This PR provides public API to add an action for groups of layers.
Two functions are added to public API of QGisInterface:
virtual void addCustomActionForGroups( QAction *action, const QString &menu ) = 0;
virtual bool removeCustomActionForGroups( QAction *action ) = 0;
Fixes #53692