##// END OF EJS Templates
Drafting the new mapper api on QML
Drafting the new mapper api on QML

File last commit:

r1218:b8de085c4198
r1221:d772c9d3a6aa
Show More
linechartitem_p.h
64 lines | 1.7 KiB | text/x-c | CLexer
Jani Honkonen
Add license headers
r794 /****************************************************************************
**
** Copyright (C) 2012 Digia Plc
** All rights reserved.
** For any questions to Digia, please use contact form at http://qt.digia.com
**
** This file is part of the Qt Commercial Charts Add-on.
**
** $QT_BEGIN_LICENSE$
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
** contact form at http://qt.digia.com
** $QT_END_LICENSE$
**
****************************************************************************/
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 xychartitem -> xychart
r1218 #include "xychart_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
Refactors chartitem...
r677 class ChartPresenter;
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Michal Klocek
Refactor xychartitem -> xychart
r1218 class LineChartItem : public XYChart , public QGraphicsItem
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 xychartitem -> xychart
r1218 Q_INTERFACES(QGraphicsItem)
Michal Klocek
Refactor current draft to fit int current design specs...
r21 public:
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 explicit LineChartItem(QLineSeries *series,ChartPresenter *presenter);
~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
sauimone
Q_SIGNALS and Q_SLOTS
r775 public Q_SLOTS:
Michal Klocek
Adds updated handling for line series
r392 void handleUpdated();
Michal Klocek
Refactors linechart update calls
r464 protected:
Michal Klocek
Refactors animation handling for xyseries
r1217 void updateGeometry();
Michal Klocek
Refactor xychartitem -> xychart
r1218 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
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