##// END OF EJS Templates
Fix crash with empty BarSet values...
Fix crash with empty BarSet values Change-Id: I6c82ad2985f7efc501ed0df34b8205875a369fd0 Task-number: QTBUG-51287 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>

File last commit:

r2845:ae12522d475c
r2869:8f454d1f8b44
Show More
linechartitem_p.h
98 lines | 2.8 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.
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
Titta Heikkala
Fix include syntax...
r2714 #include <QtCharts/QChartGlobal>
#include <private/xychart_p.h>
#include <QtCharts/QChart>
#include <QtGui/QPen>
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_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
Refactors internals...
r2273 class LineChartItem : public XYChart
Michal Klocek
Refactor current draft to fit int current design specs...
r21 {
Jani Honkonen
astyle and manual coding style fixes for src-folder
r2097 Q_OBJECT
Q_INTERFACES(QGraphicsItem)
Michal Klocek
Refactor current draft to fit int current design specs...
r21 public:
Miikka Heikkinen
Add Polar chart support...
r2483 explicit LineChartItem(QLineSeries *series, QGraphicsItem *item = 0);
Tero Ahola
Fixed paint and mouse event issues with QLineSeries...
r1791 ~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
Miikka Heikkinen
Add Polar chart support...
r2483 QPainterPath path() const { return m_fullPath; }
Tero Ahola
Fixed area series paint bug caused by mouse event fix on line series
r1792
sauimone
Q_SIGNALS and Q_SLOTS
r775 public Q_SLOTS:
Michal Klocek
Adds updated handling for line series
r392 void handleUpdated();
Tero Ahola
Fixed area series paint bug caused by mouse event fix on line series
r1792
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);
Marek Rosa
Added hovered signal to QLineSeries. Updated callout example
r2255 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);
Miikka Heikkinen
Fix area series fill problem when component series have points visible...
r2452 void suppressPoints() { m_pointsVisible = false; }
Miikka Heikkinen
Add Polar chart support...
r2483 void forceChartType(QChart::ChartType chartType) { m_chartType = chartType; }
Michal Klocek
Refactors linechart update calls
r464
Michal Klocek
Refactor line spline to common xyline...
r465 private:
Jani Honkonen
more coding style fixes for src-folder...
r2104 QLineSeries *m_series;
Michal Klocek
Fix line series graphic arefacts
r1819 QPainterPath m_linePath;
Miikka Heikkinen
Add Polar chart support...
r2483 QPainterPath m_linePathPolarRight;
QPainterPath m_linePathPolarLeft;
QPainterPath m_fullPath;
QPainterPath m_shapePath;
Titta Heikkala
Revert previous change to LineChartItem...
r2818 QVector<QPointF> m_linePoints;
Michal Klocek
Refactor line spline to common xyline...
r465 QRectF m_rect;
Michal Klocek
Adds clicked(Point) to lineSeries, changes visible points handling
r544 QPen m_linePen;
bool m_pointsVisible;
Miikka Heikkinen
Add Polar chart support...
r2483 QChart::ChartType m_chartType;
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
Add pressed, released and doubleClicked signals...
r2739
QPointF m_lastMousePos;
bool m_mousePressed;
Michal Klocek
Refactor current draft to fit int current design specs...
r21 };
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_END_NAMESPACE
Michal Klocek
Refactor current draft to fit int current design specs...
r21
#endif