##// END OF EJS Templates
Separated legend marker to private header. Added signals for left and right mouse click
Separated legend marker to private header. Added signals for left and right mouse click

File last commit:

r544:e21e24989fda
r547:2c194d26bbea
Show More
linechartitem_p.h
47 lines | 970 B | text/x-c | CLexer
Michal Klocek
Fix naming convention for lineseries...
r144 #ifndef LINECHARTITEM_H
#define LINECHARTITEM_H
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Tero Ahola
Renamed to QtCommercialChart
r30 #include "qchartglobal.h"
Michal Klocek
Refactor line spline to common xyline...
r465 #include "xychartitem_p.h"
Michal Klocek
Refactored for MVP...
r139 #include <QPen>
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Michal Klocek
Rename QLineChartSeries to QLineSeries
r349 class QLineSeries;
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Michal Klocek
Refactor line spline to common xyline...
r465 class LineChartItem : public XYChartItem
Michal Klocek
Refactor current draft to fit int current design specs...
r21 {
Michal Klocek
Refactors qchart , adds line animation...
r131 Q_OBJECT
Michal Klocek
Refactor current draft to fit int current design specs...
r21 public:
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 explicit LineChartItem(QLineSeries* series,QGraphicsItem *parent = 0);
Michal Klocek
Fix naming convention for lineseries...
r144 ~ LineChartItem(){};
Michal Klocek
Refactor current draft to fit int current design specs...
r21
//from QGraphicsItem
Michal Klocek
Add zoom support...
r67 QRectF boundingRect() const;
Tero Ahola
One more alternative for changing themes
r108 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
Michal Klocek
Refactors qchart , adds line animation...
r131 QPainterPath shape() const;
Michal Klocek
Refactored for MVP...
r139
Michal Klocek
Rewrite animation hadnling in line series...
r389 public slots:
Michal Klocek
Adds updated handling for line series
r392 void handleUpdated();
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Michal Klocek
Adds clicked to lineseries API
r542 signals:
Michal Klocek
Adds clicked(Point) to lineSeries, changes visible points handling
r544 void clicked(const QPointF& point);
Michal Klocek
Adds clicked to lineseries API
r542
Michal Klocek
Refactors linechart update calls
r464 protected:
virtual void setGeometry(QVector<QPointF>& points);
Michal Klocek
Adds clicked to lineseries API
r542 void mousePressEvent( QGraphicsSceneMouseEvent * event );
Michal Klocek
Refactors linechart update calls
r464
Michal Klocek
Refactor line spline to common xyline...
r465 private:
Marek Rosa
Spline with problems
r419 QLineSeries* m_series;
Michal Klocek
Fix commit 7b90ec69ce9a3353820d295c222ef3f79537484d
r391 QGraphicsItemGroup m_items;
Michal Klocek
Refactor line spline to common xyline...
r465 QPainterPath m_path;
QRectF m_rect;
Michal Klocek
Adds clicked(Point) to lineSeries, changes visible points handling
r544 QPen m_linePen;
QPen m_pointPen;
bool m_pointsVisible;
Michal Klocek
Refactors qchart , adds line animation...
r131
Michal Klocek
Refactor current draft to fit int current design specs...
r21 };
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_END_NAMESPACE
Michal Klocek
Refactor current draft to fit int current design specs...
r21
#endif