##// END OF EJS Templates
Fix model resetting in with model mappers...
Fix model resetting in with model mappers Change-Id: I22afd1d361aaf0561b4d94b6a3656bfe7b0d9812 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>

File last commit:

r2845:ae12522d475c
r2870:ea9744cf9a34
Show More
splinechartitem_p.h
101 lines | 3.0 KiB | text/x-c | CLexer
Titta Heikkala
Updated license headers...
r2845 /******************************************************************************
Jani Honkonen
Add license headers
r794 **
Titta Heikkala
Updated license headers...
r2845 ** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
Jani Honkonen
Add license headers
r794 **
Titta Heikkala
Updated license headers...
r2740 ** This file is part of the Qt Charts module.
Jani Honkonen
Add license headers
r794 **
Titta Heikkala
Updated license headers...
r2845 ** $QT_BEGIN_LICENSE:COMM$
Jani Honkonen
Add license headers
r794 **
Titta Heikkala
Updated license headers...
r2845 ** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see http://www.qt.io/terms-conditions. For further
** information use the contact form at http://www.qt.io/contact-us.
Jani Honkonen
Add license headers
r794 **
Titta Heikkala
Updated license headers...
r2845 ** $QT_END_LICENSE$
**
******************************************************************************/
Jani Honkonen
Add license headers
r794
unknown
Added missing warning about private implementation
r1366 // W A R N I N G
// -------------
//
Titta Heikkala
Updated private header warning...
r2807 // This file is not part of the Qt Chart API. It exists purely as an
unknown
Added missing warning about private implementation
r1366 // implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
Marek Rosa
Renamed SplinePresenter to SplineChartItem
r460 #ifndef SPLINECHARTITEM_P_H
#define SPLINECHARTITEM_P_H
Marek Rosa
Spline initial
r295
Titta Heikkala
Fix include syntax...
r2714 #include <QtCharts/QSplineSeries>
#include <private/xychart_p.h>
Michal Klocek
Improves spline interpolation...
r622
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_BEGIN_NAMESPACE
Marek Rosa
Spline initial
r295
Michal Klocek
Refactor animator...
r1735 class SplineAnimation;
Michal Klocek
Refactors internals...
r2273 class SplineChartItem : public XYChart
Marek Rosa
Spline initial
r295 {
Q_OBJECT
Michal Klocek
Refactor xychartitem -> xychart
r1218 Q_INTERFACES(QGraphicsItem)
Marek Rosa
Spline initial
r295 public:
Miikka Heikkinen
Add Polar chart support...
r2483 SplineChartItem(QSplineSeries *series, QGraphicsItem *item = 0);
Marek Rosa
Spline initial
r295
Michal Klocek
Refactor line spline to common xyline...
r465 //from QGraphicsItem
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
QPainterPath shape() const;
Marek Rosa
Experimenting
r417
Michal Klocek
Refactors animation handling for xyseries
r1217 void setControlGeometryPoints(QVector<QPointF>& points);
QVector<QPointF> controlGeometryPoints() const;
Jani Honkonen
more coding style fixes for src-folder...
r2104 void setAnimation(SplineAnimation *animation);
ChartAnimation *animation() const;
Michal Klocek
Refactors animation handling for xyseries
r1217
sauimone
Q_SIGNALS and Q_SLOTS
r775 public Q_SLOTS:
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476 void handleUpdated();
Michal Klocek
Refactor line spline to common xyline...
r465 protected:
Michal Klocek
Refactors animation handling for xyseries
r1217 void updateGeometry();
Marek Rosa
QSplineSeries calculateControlPoints moved to splinechartitem. This way we don't need to deal with controlPoints on logaritmic scale
r2372 QVector<QPointF> calculateControlPoints(const QVector<QPointF> &points);
QVector<qreal> firstControlPoints(const QVector<qreal>& vector);
Jani Honkonen
astyle and manual coding style fixes for src-folder
r2097 void updateChart(QVector<QPointF> &oldPoints, QVector<QPointF> &newPoints, int index);
Michal Klocek
Refactor xychartitem -> xychart
r1218 void mousePressEvent(QGraphicsSceneMouseEvent *event);
Marek Rosa
Added hover support to splinechart and updated callout example
r2256 void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
Titta Heikkala
Add pressed, released and doubleClicked signals...
r2739 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);
Marek Rosa
Spline with problems
r419
Michal Klocek
Refactor line spline to common xyline...
r465 private:
Marek Rosa
tablemodelchart moved to test folder
r961 QSplineSeries *m_series;
Michal Klocek
Refactor line spline to common xyline...
r465 QPainterPath m_path;
Miikka Heikkinen
Add Polar chart support...
r2483 QPainterPath m_pathPolarRight;
QPainterPath m_pathPolarLeft;
QPainterPath m_fullPath;
Michal Klocek
Refactor line spline to common xyline...
r465 QRectF m_rect;
Michal Klocek
Adds visible points handling to spline
r580 QPen m_linePen;
QPen m_pointPen;
bool m_pointsVisible;
Michal Klocek
Improves spline interpolation...
r622 QVector<QPointF> m_controlPoints;
Miikka Heikkinen
Add Polar chart support...
r2483 QVector<QPointF> m_visiblePoints;
Jani Honkonen
more coding style fixes for src-folder...
r2104 SplineAnimation *m_animation;
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476
Titta Heikkala
Added possibility to show series value...
r2689 bool m_pointLabelsVisible;
QString m_pointLabelsFormat;
QFont m_pointLabelsFont;
QColor m_pointLabelsColor;
Titta Heikkala
Added option to set labels clipping...
r2815 bool m_pointLabelsClipping;
Titta Heikkala
Added possibility to show series value...
r2689
Titta Heikkala
Add pressed, released and doubleClicked signals...
r2739 QPointF m_lastMousePos;
bool m_mousePressed;
Michal Klocek
Improves spline interpolation...
r622 friend class SplineAnimation;
Marek Rosa
Spline initial
r295 };
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_END_NAMESPACE
Marek Rosa
Spline initial
r295
Marek Rosa
Renamed SplinePresenter to SplineChartItem
r460 #endif // SPLINECHARTITEM_P_H