##// END OF EJS Templates
Title and name of QSeries replaced with name
Title and name of QSeries replaced with name

File last commit:

r690:847ff650439d
r731:90a16700f8b3
Show More
areachartitem_p.h
76 lines | 1.6 KiB | text/x-c | CLexer
Michal Klocek
Adds area chart...
r421 #ifndef AREACHARTITEM_H
#define AREACHARTITEM_H
#include "qchartglobal.h"
#include "linechartitem_p.h"
#include <QPen>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QAreaSeries;
class AreaChartItem;
Michal Klocek
Release compilation fixes
r689 class AreaChartItem : public ChartItem
Michal Klocek
Adds area chart...
r421 {
Q_OBJECT
public:
Michal Klocek
Refactors chartitem...
r677 AreaChartItem(QAreaSeries* areaSeries, ChartPresenter *presenter);
Michal Klocek
Adds area chart...
r421 ~ AreaChartItem();
//from QGraphicsItem
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
QPainterPath shape() const;
Michal Klocek
Adds area chart animations...
r560 LineChartItem* upperLineItem() const { return m_upper ;}
LineChartItem* lowerLineItem() const { return m_lower ;}
Michal Klocek
Adds area chart...
r421 void updatePath();
Michal Klocek
Refactors click signal to line,area,spline,scatter charts
r571
protected:
void mousePressEvent( QGraphicsSceneMouseEvent * event );
signals:
void clicked(const QPointF& point);
Michal Klocek
Adds area chart...
r421 public slots:
void handleUpdated();
Michal Klocek
Refactor domain model...
r439 void handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY);
Michal Klocek
Adds area chart...
r421 void handleGeometryChanged(const QRectF& size);
private:
QAreaSeries* m_series;
LineChartItem* m_upper;
LineChartItem* m_lower;
Michal Klocek
Refactor domain model...
r439 QPainterPath m_path;
Michal Klocek
Adds area chart...
r421 QRectF m_rect;
QRectF m_clipRect;
Michal Klocek
Adds visiblePoints handling to area chart
r563 QPen m_linePen;
QPen m_pointPen;
Michal Klocek
Adds area chart...
r421 QBrush m_brush;
Michal Klocek
Adds visiblePoints handling to area chart
r563 bool m_pointsVisible;
Michal Klocek
Adds area chart...
r421 };
class AreaBoundItem : public LineChartItem
{
public:
Michal Klocek
Bugfix : black line drawn during areachart paint
r690 AreaBoundItem(AreaChartItem* item,QLineSeries* lineSeries):LineChartItem(lineSeries,0),
m_item(item){
};
Michal Klocek
Adds area chart...
r421
~AreaBoundItem(){};
Michal Klocek
Unify naming setGeometry -> setLayout
r557 void setLayout(QVector<QPointF>& points){
LineChartItem::setLayout(points);
Michal Klocek
Adds area chart...
r421 m_item->updatePath();
}
private:
AreaChartItem* m_item;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif