36 explicit QwtLegend( QWidget *parent = NULL );
39 void setMaxColumns( uint numColums );
40 uint maxColumns()
const;
45 QWidget *contentsWidget();
46 const QWidget *contentsWidget()
const;
48 QWidget *legendWidget(
const QVariant & )
const;
51 QVariant itemInfo(
const QWidget * )
const;
53 virtual bool eventFilter( QObject *, QEvent * )
QWT_OVERRIDE;
58 QScrollBar *horizontalScrollBar()
const;
59 QScrollBar *verticalScrollBar()
const;
62 const QRectF &,
bool fillBackground )
const QWT_OVERRIDE;
64 virtual void renderItem( QPainter *,
65 const QWidget *,
const QRectF &,
bool fillBackground )
const;
83 void clicked(
const QVariant &itemInfo,
int index );
98 void checked(
const QVariant &itemInfo,
bool on,
int index );
106 void itemChecked(
bool );
109 virtual QWidget *createWidget(
const QwtLegendData & )
const;
110 virtual void updateWidget( QWidget *,
const QwtLegendData & );
113 void updateTabOrder();
virtual bool isEmpty() const =0
virtual void updateLegend(const QVariant &itemInfo, const QList< QwtLegendData > &data)=0
Update the entries for a plot item.
virtual void renderLegend(QPainter *painter, const QRectF &rect, bool fillBackground) const =0
Abstract base class for legend widgets.
Mode
Mode defining how a legend entry interacts.
virtual int scrollExtent(Qt::Orientation) const
Attributes of an entry on a legend.