#include <qwt_legend.h>
List of all members.
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
Constructor & Destructor Documentation
QwtLegend::QwtLegend |
( |
QWidget * |
parent = NULL | ) |
[explicit] |
QwtLegend::~QwtLegend |
( |
| ) |
[virtual] |
Member Function Documentation
void QwtLegend::clear |
( |
| ) |
|
QWidget * QwtLegend::contentsWidget |
( |
| ) |
|
The contents widget is the only child of the viewport of the internal QScrollArea and the parent widget of all legend items.
- Returns:
- Container widget of the legend items
const QWidget * QwtLegend::contentsWidget |
( |
| ) |
const |
The contents widget is the only child of the viewport of the internal QScrollArea and the parent widget of all legend items.
- Returns:
- Container widget of the legend items
bool QwtLegend::eventFilter |
( |
QObject * |
object, |
|
|
QEvent * |
event |
|
) |
| [virtual] |
Handle QEvent::ChildRemoved andQEvent::LayoutRequest events for the contentsWidget().
- Parameters:
-
object | Object to be filtered |
event | Event |
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 |
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 contentsWidget()
bool QwtLegend::isEmpty |
( |
| ) |
const |
Return true, if there are no legend items.
uint QwtLegend::itemCount |
( |
| ) |
const |
Return the number of legend items.
void QwtLegend::layoutContents |
( |
| ) |
[protected, virtual] |
Adjust contents widget and item layout to the size of the viewport().
QList< QWidget * > QwtLegend::legendItems |
( |
| ) |
const [virtual] |
Return a list of all legend items.
Find the corresponding item for a plotItem and remove it from the item list.
- Parameters:
-
QSize QwtLegend::sizeHint |
( |
| ) |
const [virtual] |
QScrollBar * QwtLegend::verticalScrollBar |
( |
| ) |
const |