Feature request #3484

Legend Title enhancements: Add "Show Title" checkbox, wrap text option

Added by bderstine - over 8 years ago. Updated over 7 years ago.

Status:Closed
Priority:Low
Assignee:Nathan Woodrow
Category:Map Legend
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:13544

Description

Sometimes legend titles are not needed, sometimes rather long legend titles are needed. QGIS' Legend Title does not handle these cases well.

1. The Print Composer does not provide a way to wrap long legend titles to multiple lines.
2. Print Composer leaves space for a title at the top of the legend even if there is no legend text. It would be very useful if there were a "Show Title" checkbox in the General Tab to turn on and off the legend title and the space reserved for the legend title. This would be the same as the "Show Frame" check box in the Item Options tab.

Steps to Reproduce:
Open a map with at least one layer,
Open a Print Composer,
Add a new vector legend
Click on Item Tab (right side menu)
Click on Item Options tab - this is the "Show frame" check box
Click on General - this is where the "Show title" check box should be
1. If you type a very long title, there is no way to wrap the text
2. If you delete the title text, the space in the legend for the title still exists (see screenshots)
The closest I could get to removing the extra white space at the top of the legend was setting the title font size to 1, but that still leaves extra white space at the top of the legend, an on/off button would be much better.

LegendTitleCheckBox.png - Legend Title Check Box Mock Up (35.9 KB) bderstine -, 2011-02-11 12:16 PM

LegendLongTitle.png - Legend Long title - no wrapping screenshot (26 KB) bderstine -, 2011-02-11 12:16 PM

LegendNoTitle.png - Legend No Title w/extra white space screenshot (20.9 KB) bderstine -, 2011-02-11 12:17 PM

Associated revisions

Revision f73526ab
Added by Nathan Woodrow over 7 years ago

Don't leave space for empty title. Semi fixes #3484

History

#1 Updated by Giovanni Manghi almost 8 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

#2 Updated by Nathan Woodrow over 7 years ago

  • Pull Request or Patch supplied set to No
  • Assignee changed from nobody - to Nathan Woodrow

Working on some of these features now.

Mainly text wrapping to start with. The I'll see about the others.

#3 Updated by Nathan Woodrow over 7 years ago

  • Target version changed from Version 1.7.4 to Version 1.8.0

#4 Updated by Nathan Woodrow over 7 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

#5 Updated by Nathan Woodrow over 7 years ago

also some fixes in afc90ab0e27b2

Also available in: Atom PDF