-
Notifications
You must be signed in to change notification settings - Fork 3
/
qwt_legend.h
57 lines (39 loc) · 1.26 KB
/
qwt_legend.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#pragma once
#include <qframe.h>
#include <qlist.h>
class QScrollBar;
class QwtLegendItemManager;
/*!
\brief 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.
\sa QwtLegendItem, QwtLegendItemManager QwtPlot
*/
class QwtLegend : public QFrame
{
Q_OBJECT
public:
explicit QwtLegend( QWidget *parent = NULL );
virtual ~QwtLegend();
QWidget *contentsWidget();
const QWidget *contentsWidget() const;
void insert( const QwtLegendItemManager *, QWidget * );
void remove( const QwtLegendItemManager * );
QWidget *find( const QwtLegendItemManager * ) const;
QwtLegendItemManager *find( const QWidget * ) const;
virtual QList<QWidget *> legendItems() const;
void clear();
bool isEmpty() const;
uint itemCount() const;
virtual bool eventFilter( QObject *, QEvent * );
virtual QSize sizeHint() const;
virtual int heightForWidth( int w ) const;
QScrollBar *horizontalScrollBar() const;
QScrollBar *verticalScrollBar() const;
protected:
virtual void layoutContents();
private:
class PrivateData;
PrivateData *d_data;
};