##// END OF EJS Templates
Fixed bar label visibility...
Fixed bar label visibility Label for bars with zero value is not shown. This is done to avoid overlapping labels. Change-Id: Ife30c04e8ae4d9ac9df1209967cc3cd3ecb76a4f Task-number: QTRD-3695 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>

File last commit:

r2807:a9a78a1d08bc
r2814:79dc9c599f41
Show More
splinechartitem_p.h
97 lines | 2.9 KiB | text/x-c | CLexer
Jani Honkonen
Add license headers
r794 /****************************************************************************
**
Titta Heikkala
Copyright header changes...
r2776 ** Copyright (C) 2015 The Qt Company Ltd
Jani Honkonen
Add license headers
r794 ** All rights reserved.
Titta Heikkala
Copyright header changes...
r2776 ** For any questions to The Qt Company, please use contact form at http://qt.io
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...
r2740 ** Licensees holding valid commercial license for Qt may use this file in
** accordance with the Qt License Agreement provided with the Software
** or, alternatively, in accordance with the terms contained in a written
Titta Heikkala
Copyright header changes...
r2776 ** agreement between you and The Qt Company.
Jani Honkonen
Add license headers
r794 **
** If you have questions regarding the use of this file, please use
Titta Heikkala
Updated license headers...
r2740 ** contact form at http://qt.io
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
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