[Qgis-developer] Recent changes to legend

Brendan Morley morb at beagle.com.au
Fri Jul 14 19:45:53 EDT 2006


Being the culprit behind r5594, I'd better add some commentary...

On Fri, 2006-07-14 at 12:37 -0400, Tom Elwertowski wrote:

> Rather than using separate top-level columns, I would just append icons 
> at the end of lower rows as needed. To explain the icons, I'd use the 
> yellow roll-over tooltips.

As per my commit message:

"QGIS used to do this already before the move to Qt4 - however the new
QIcon idiom only seems to allow for square icons, therefore it is easier
to split the results out to several columns and give them their own
QIcons."

Each QTreeWidgetItem only appears to allow for 1 icon and 1 piece of
text per column, therefore I can't see how you can just append more
icons without also appending more columns...?

Also, I added the column headers back in because then you can at least
resize the columns yourselves if your layer names are long.

As for layout, are we *really* that scared of a horizontal scroll bar?
Or have I missed something?

> If the icons are used, they should also appear on the second row of the 
> layer. When there is only one file, the icons are the same as the file 
> row. For multiple files, there needs to be tri-state versions of the 
> icons like the dashed and checked version of checkboxes. For example, a 
> pencil icon drawn with dashed rather then solid lines would indicate 
> that a layer had multiple files, only some of which are editable.
> 
> For 0.8, we should either do some additional work now to improve the 
> layout or else postpone this until later.


Thanks for the feedback, anyway.  I'm finding it's a dance between what
the users want vs. what Qt4 can give.

Brendan





More information about the Qgis-developer mailing list