13 #include "qwt_global.h"
14 #include "qwt_abstract_legend.h"
34 explicit QwtLegend( QWidget *parent = NULL );
37 void setMaxColumns( uint numColums );
38 uint maxColumns()
const;
43 QWidget *contentsWidget();
44 const QWidget *contentsWidget()
const;
46 QWidget *legendWidget(
const QVariant & )
const;
47 QList<QWidget *> legendWidgets(
const QVariant & )
const;
49 QVariant itemInfo(
const QWidget * )
const;
51 virtual bool eventFilter( QObject *, QEvent * );
53 virtual QSize sizeHint()
const;
54 virtual int heightForWidth(
int width )
const;
56 QScrollBar *horizontalScrollBar()
const;
57 QScrollBar *verticalScrollBar()
const;
60 const QRectF &,
bool fillBackground )
const;
62 virtual void renderItem( QPainter *,
63 const QWidget *,
const QRectF &,
bool fillBackground )
const;
81 void clicked(
const QVariant &itemInfo,
int index );
96 void checked(
const QVariant &itemInfo,
bool on,
int index );
100 const QList<QwtLegendData> & );
104 void itemChecked(
bool );
107 virtual QWidget *createWidget(
const QwtLegendData & )
const;
108 virtual void updateWidget( QWidget *widget,
const QwtLegendData & );
111 void updateTabOrder();
Attributes of an entry on a legend.
Definition: qwt_legend_data.h:36
virtual void renderLegend(QPainter *painter, const QRectF &rect, bool fillBackground) const =0
The legend widget.
Definition: qwt_legend.h:30
void clicked(const QVariant &itemInfo, int index)
void checked(const QVariant &itemInfo, bool on, int index)
virtual int scrollExtent(Qt::Orientation) const
Definition: qwt_abstract_legend.cpp:34
virtual bool isEmpty() const =0
Abstract base class for legend widgets.
Definition: qwt_abstract_legend.h:35
Mode
Mode defining how a legend entry interacts.
Definition: qwt_legend_data.h:40
virtual void updateLegend(const QVariant &itemInfo, const QList< QwtLegendData > &data)=0
Update the entries for a plot item.