Opened 16 years ago
Closed 15 years ago
Last modified 14 years ago
#572 closed defect (fixed)
change any property of a vector layer (transparency, labels etc.) = the layer gets expanded
|Reported by:||Owned by:||aaronr|
|Priority:||major: does not work as expected||Milestone:|
|Must Fix for Release:||No||Platform:||Debian|
|Platform Version:||Awaiting user input:||no|
This is not necessary, and happens to be diturbing - I have to re-collapse the layer each time I change it's transparency percentage, or any other property.
Change History (10)
comment:1 by , 16 years ago
|Milestone:||Version 0.8.1 → Version 0.8.2|
comment:2 by , 15 years ago
|Awaiting user input:||unset|
|Status:||new → assigned|
by , 15 years ago
comment:3 by , 15 years ago
Patch attached to fix this bug. Added bool value to signal for legend refresh to specify whether the legend item is expanded. Submitted by CUGOS group 11/28/07.
comment:4 by , 15 years ago
I wonder what effect this change in qgsapplicatoninterface will have on third party apps:
148 qgis->legend()->refreshLayerSymbology( l->getLayerID() ); 148 qgis->legend()->refreshLayerSymbology( l->getLayerID(), true );
While we dont promise binary comatibility between releases it will be nice to maintain it where poss. I wonder if useing a default of bool expand=true would not be better so that we can leave the qgsapplication api unchanged if possible.
comment:5 by , 15 years ago
Well, the API in qgsapplication did not actually change... only the api for QgsLegend::refreshLayerSymbology and the signal refreshLegend had actually changed. In the qgsapplication the "default" value was just being passed in as a hard coded "true". I agree that this should actually just be a default value on the second param to QgsLegend::refreshLayerSymbology. I went ahead and made the change so now the prototype for that is:
void refreshLayerSymbology(QString key, bool expandItem = true);
This allows all of the original calls to refreshLayerSymbology to remain unchanged and just the new param that is added to the refreshLegend signal is passed on to refreshLayerSymbology to override the default true value.
Hope this better follows the conventions... a new patch is attached.
by , 15 years ago
comment:6 by , 15 years ago
You patch was applied as r7683 - many thanks!
comment:7 by , 15 years ago
|Status:||assigned → closed|
Marking as fixed after Tim applied the patch. Thanks Tim
comment:8 by , 14 years ago
Milestone Version 0.9.1 deleted
Moved to milestone 0.8.2 since we wont be fixing any further issues before the 0.8.1 release