#include <qwt_legend.h>
List of all members.
| 
Public Types | 
| enum | LegendDisplayPolicy { NoIdentifier =  0,
 FixedIdentifier =  1,
 AutoIdentifier =  2
 }
 | 
| enum | LegendItemMode { ReadOnlyItem,
 ClickableItem,
 CheckableItem
 }
 | 
Detailed Description
The legend widget. 
The QwtLegend widget is a tabular arrangement of legend items. Legend items might be any type of widget, but in general they will be a QwtLegendItem.
- See also:
- QwtLegendItem, QwtLegendItemManager QwtPlot 
Member Enumeration Documentation
Display policy. 
- NoIdentifier
 The client code is responsible how to display of each legend item. The Qwt library will not interfere.
- AutoIdentifier
 Each legend item is displayed with a mode that is a bitwise or of
- QwtLegendItem::ShowLine (if its curve is drawn with a line) and
- QwtLegendItem::ShowSymbol (if its curve is drawn with symbols) and
- QwtLegendItem::ShowText (if the has a title).
 
Default is AutoIdentifier. 
- See also:
- setDisplayPolicy(), displayPolicy(), QwtLegendItem::IdentifierMode 
 
 
Constructor & Destructor Documentation
  
  | 
        
          | QwtLegend::QwtLegend | ( | QWidget * | parent = NULL | ) |  |  | explicit | 
 
 
Member Function Documentation
      
        
          | QWidget * QwtLegend::contentsWidget | ( |  | ) |  | 
      
 
The contents widget is the only child of the viewport() and the parent widget of all legend items. 
 
 
      
        
          | const QWidget * QwtLegend::contentsWidget | ( |  | ) | const | 
      
 
The contents widget is the only child of the viewport() and the parent widget of all legend items. 
 
 
  
  | 
        
          | bool QwtLegend::eventFilter | ( | QObject * | o, |  
          |  |  | QEvent * | e |  
          |  | ) |  |  |  | virtual | 
 
 
Find the widget that represents a plot item
- Parameters:
- 
  
  
- Returns:
- Widget on the legend, or NULL 
 
 
Find the widget that represents a plot item
- Parameters:
- 
  
  
- Returns:
- Widget on the legend, or NULL 
 
 
  
  | 
        
          | int QwtLegend::heightForWidth | ( | int | width | ) | const |  | virtual | 
 
- Returns:
- The preferred height, for the width w. 
- Parameters:
- 
  
  
 
 
      
        
          | QScrollBar * QwtLegend::horizontalScrollBar | ( |  | ) | const | 
      
 
 
      
        
          | int QwtLegend::identifierMode | ( |  | ) | const | 
      
 
- Returns:
- the IdentifierMode to be used in combination with LegendDisplayPolicy::Fixed.
Default is ShowLine | ShowSymbol | ShowText. 
 
 
Insert a new item for a plot item 
- Parameters:
- 
  
    | plotItem | Plot item |  | legendItem | New legend item |  
 
- Note:
- The parent of item will be changed to QwtLegend::contentsWidget() 
 
 
  
  | 
        
          | void QwtLegend::layoutContents | ( |  | ) |  |  | protectedvirtual | 
 
Adjust contents widget and item layout to the size of the viewport(). 
 
 
Find the corresponding item for a plotItem and remove it from the item list.
- Parameters:
- 
  
  
 
 
  
  | 
        
          | void QwtLegend::resizeEvent | ( | QResizeEvent * | e | ) |  |  | protectedvirtual | 
 
 
Set the legend display policy to:
- Parameters:
- 
  
    | policy | Legend display policy |  | mode | Identifier mode (or'd ShowLine, ShowSymbol, ShowText) |  
 
- See also:
- displayPolicy(), LegendDisplayPolicy 
 
 
      
        
          | QScrollBar * QwtLegend::verticalScrollBar | ( |  | ) | const |