##// END OF EJS Templates
Fixes missing chart area z value intialization
Fixes missing chart area z value intialization

File last commit:

r547:2c194d26bbea
r564:502de68ba0ac
Show More
qlegend.h
49 lines | 1.1 KiB | text/x-c | CLexer
sauimone
framework for legend
r524 #ifndef QLEGEND_H
#define QLEGEND_H
#include "qchartglobal.h"
#include "qseries.h"
#include <QGraphicsObject>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class Domain;
sauimone
First version of legend. Simple markers and serie names. Using drilldown as example for now.
r529 class LegendMarker;
sauimone
framework for legend
r524
sauimone
First version of legend. Simple markers and serie names. Using drilldown as example for now.
r529 class QTCOMMERCIALCHART_EXPORT QLegend : public QGraphicsObject
sauimone
framework for legend
r524 {
Q_OBJECT
public:
explicit QLegend(QGraphicsItem *parent = 0);
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
QRectF boundingRect() const;
sauimone
background to legend, theme applies
r540 void setBackgroundBrush(const QBrush& brush);
QBrush backgroundBrush() const;
sauimone
framework for legend
r524 signals:
sauimone
Separated legend marker to private header. Added signals for left and right mouse click
r547 // for interactions.
void clicked(QSeries* series, QString name);
void rightClicked(QSeries* series, QString name);
sauimone
framework for legend
r524 public slots:
void handleSeriesAdded(QSeries* series,Domain* domain);
void handleSeriesRemoved(QSeries* series);
sauimone
First version of legend. Simple markers and serie names. Using drilldown as example for now.
r529 void handleGeometryChanged(const QRectF& size);
sauimone
framework for legend
r524
private:
sauimone
First version of legend. Simple markers and serie names. Using drilldown as example for now.
r529 void dataChanged();
void layoutChanged();
sauimone
framework for legend
r524
QRectF mBoundingRect;
QList<QSeries*> mSeriesList;
sauimone
First version of legend. Simple markers and serie names. Using drilldown as example for now.
r529 QList<LegendMarker*> mMarkers;
sauimone
background to legend, theme applies
r540
QBrush mBackgroundBrush;
sauimone
framework for legend
r524 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QLEGEND_H