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

If a dependent layer is redrawn, then also redraw child layer #3511

Merged
merged 1 commit into from Oct 3, 2016

Conversation

nyalldawson
Copy link
Collaborator

If a layer has a dependency on another layer, then trigger a redraw for the dependant layer whenever the other layer is redrawn.

@mhugo What do you think? Does this make sense to you?

@nirvn
Copy link
Contributor

nirvn commented Sep 20, 2016

Nice. This offers a clean solution for layer-dependent symbology to redraw itself (instead of the label obstacle hack).

@m-kuhn
Copy link
Member

m-kuhn commented Sep 28, 2016

Ping @mhugo

@mhugo
Copy link

mhugo commented Oct 3, 2016

Sorry for the lag, I did not see the notification :/ It makes sense ! Thanks !

@mhugo mhugo merged commit 8c90f7d into qgis:master Oct 3, 2016
@nirvn
Copy link
Contributor

nirvn commented Oct 3, 2016

@mhugo thanks

@nyalldawson
Copy link
Collaborator Author

@mhugo... I've been wondering, is repaintRequested the right signal here or should this instead connect to dataChanged? I can see benefits both ways...

@mhugo
Copy link

mhugo commented Oct 3, 2016

@nyalldawson actually ... I am now wondering if this connection is needed. dataChanged() emitted from the provider should trigger a triggerRepaint on the layer (https://github.com/qgis/QGIS/blob/master/src/app/qgisapp.cpp#L10132).
In which cases one have a repaintRequested() but no dataChanged() ?

@nyalldawson nyalldawson deleted the depend_redraw branch October 17, 2016 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants