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 w )
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;
111 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
TFSIMD_FORCE_INLINE const tfScalar & w() const
Abstract base class for legend widgets.
empty_struct data[sizeof(T)/sizeof(empty_struct)]
Mode
Mode defining how a legend entry interacts.
virtual int scrollExtent(Qt::Orientation) const
Attributes of an entry on a legend.