##// END OF EJS Templates
Remove warnings about unmatched parentheses...
Titta Heikkala -
r2692:d672b074a893
parent child
Show More
@@ -1,110 +1,106
1 /****************************************************************************
1 /****************************************************************************
2 **
2 **
3 ** Copyright (C) 2014 Digia Plc
3 ** Copyright (C) 2014 Digia Plc
4 ** All rights reserved.
4 ** All rights reserved.
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
6 **
6 **
7 ** This file is part of the Qt Enterprise Charts Add-on.
7 ** This file is part of the Qt Enterprise Charts Add-on.
8 **
8 **
9 ** $QT_BEGIN_LICENSE$
9 ** $QT_BEGIN_LICENSE$
10 ** Licensees holding valid Qt Enterprise licenses may use this file in
10 ** Licensees holding valid Qt Enterprise licenses may use this file in
11 ** accordance with the Qt Enterprise License Agreement provided with the
11 ** accordance with the Qt Enterprise License Agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia.
13 ** a written agreement between you and Digia.
14 **
14 **
15 ** If you have questions regarding the use of this file, please use
15 ** If you have questions regarding the use of this file, please use
16 ** contact form at http://qt.digia.com
16 ** contact form at http://qt.digia.com
17 ** $QT_END_LICENSE$
17 ** $QT_END_LICENSE$
18 **
18 **
19 ****************************************************************************/
19 ****************************************************************************/
20
20
21 #ifndef QAREASERIES_H
21 #ifndef QAREASERIES_H
22 #define QAREASERIES_H
22 #define QAREASERIES_H
23
23
24 #include <qchartglobal.h>
24 #include <qchartglobal.h>
25 #include <qabstractseries.h>
25 #include <qabstractseries.h>
26 #include <QPen>
26 #include <QPen>
27 #include <QBrush>
27 #include <QBrush>
28
28
29 QTCOMMERCIALCHART_BEGIN_NAMESPACE
29 QTCOMMERCIALCHART_BEGIN_NAMESPACE
30 class QLineSeries;
30 class QLineSeries;
31 class QAreaSeriesPrivate;
31 class QAreaSeriesPrivate;
32
32
33 class QTCOMMERCIALCHART_EXPORT QAreaSeries : public QAbstractSeries
33 class QTCOMMERCIALCHART_EXPORT QAreaSeries : public QAbstractSeries
34 {
34 {
35 Q_OBJECT
35 Q_OBJECT
36 Q_PROPERTY(QLineSeries *upperSeries READ upperSeries)
36 Q_PROPERTY(QLineSeries *upperSeries READ upperSeries)
37 Q_PROPERTY(QLineSeries *lowerSeries READ lowerSeries)
37 Q_PROPERTY(QLineSeries *lowerSeries READ lowerSeries)
38 Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
38 Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
39 Q_PROPERTY(QColor borderColor READ borderColor WRITE setBorderColor NOTIFY borderColorChanged)
39 Q_PROPERTY(QColor borderColor READ borderColor WRITE setBorderColor NOTIFY borderColorChanged)
40 Q_PROPERTY(QString pointLabelsFormat READ pointLabelsFormat WRITE setPointLabelsFormat
40 Q_PROPERTY(QString pointLabelsFormat READ pointLabelsFormat WRITE setPointLabelsFormat NOTIFY pointLabelsFormatChanged)
41 NOTIFY pointLabelsFormatChanged)
41 Q_PROPERTY(bool pointLabelsVisible READ pointLabelsVisible WRITE setPointLabelsVisible NOTIFY pointLabelsVisibilityChanged)
42 Q_PROPERTY(bool pointLabelsVisible READ pointLabelsVisible WRITE setPointLabelsVisible
42 Q_PROPERTY(QFont pointLabelsFont READ pointLabelsFont WRITE setPointLabelsFont NOTIFY pointLabelsFontChanged)
43 NOTIFY pointLabelsVisibilityChanged)
43 Q_PROPERTY(QColor pointLabelsColor READ pointLabelsColor WRITE setPointLabelsColor NOTIFY pointLabelsColorChanged)
44 Q_PROPERTY(QFont pointLabelsFont READ pointLabelsFont WRITE setPointLabelsFont
45 NOTIFY pointLabelsFontChanged)
46 Q_PROPERTY(QColor pointLabelsColor READ pointLabelsColor WRITE setPointLabelsColor
47 NOTIFY pointLabelsColorChanged)
48
44
49 public:
45 public:
50 explicit QAreaSeries(QObject *parent = 0);
46 explicit QAreaSeries(QObject *parent = 0);
51 explicit QAreaSeries(QLineSeries *upperSeries, QLineSeries *lowerSeries = 0);
47 explicit QAreaSeries(QLineSeries *upperSeries, QLineSeries *lowerSeries = 0);
52 ~QAreaSeries();
48 ~QAreaSeries();
53
49
54 public:
50 public:
55 QAbstractSeries::SeriesType type() const;
51 QAbstractSeries::SeriesType type() const;
56
52
57 void setUpperSeries(QLineSeries *series);
53 void setUpperSeries(QLineSeries *series);
58 QLineSeries *upperSeries() const;
54 QLineSeries *upperSeries() const;
59 void setLowerSeries(QLineSeries *series);
55 void setLowerSeries(QLineSeries *series);
60 QLineSeries *lowerSeries() const;
56 QLineSeries *lowerSeries() const;
61
57
62 void setPen(const QPen &pen);
58 void setPen(const QPen &pen);
63 QPen pen() const;
59 QPen pen() const;
64
60
65 void setBrush(const QBrush &brush);
61 void setBrush(const QBrush &brush);
66 QBrush brush() const;
62 QBrush brush() const;
67
63
68 void setColor(const QColor &color);
64 void setColor(const QColor &color);
69 QColor color() const;
65 QColor color() const;
70
66
71 void setBorderColor(const QColor &color);
67 void setBorderColor(const QColor &color);
72 QColor borderColor() const;
68 QColor borderColor() const;
73
69
74 void setPointsVisible(bool visible = true);
70 void setPointsVisible(bool visible = true);
75 bool pointsVisible() const;
71 bool pointsVisible() const;
76
72
77 void setPointLabelsFormat(const QString &format);
73 void setPointLabelsFormat(const QString &format);
78 QString pointLabelsFormat() const;
74 QString pointLabelsFormat() const;
79
75
80 void setPointLabelsVisible(bool visible = true);
76 void setPointLabelsVisible(bool visible = true);
81 bool pointLabelsVisible() const;
77 bool pointLabelsVisible() const;
82
78
83 void setPointLabelsFont(const QFont &font);
79 void setPointLabelsFont(const QFont &font);
84 QFont pointLabelsFont() const;
80 QFont pointLabelsFont() const;
85
81
86 void setPointLabelsColor(const QColor &color);
82 void setPointLabelsColor(const QColor &color);
87 QColor pointLabelsColor() const;
83 QColor pointLabelsColor() const;
88
84
89 Q_SIGNALS:
85 Q_SIGNALS:
90 void clicked(const QPointF &point);
86 void clicked(const QPointF &point);
91 void hovered(const QPointF &point, bool state);
87 void hovered(const QPointF &point, bool state);
92 void selected();
88 void selected();
93 void colorChanged(QColor color);
89 void colorChanged(QColor color);
94 void borderColorChanged(QColor color);
90 void borderColorChanged(QColor color);
95 void pointLabelsFormatChanged(const QString &format);
91 void pointLabelsFormatChanged(const QString &format);
96 void pointLabelsVisibilityChanged(bool visible);
92 void pointLabelsVisibilityChanged(bool visible);
97 void pointLabelsFontChanged(const QFont &font);
93 void pointLabelsFontChanged(const QFont &font);
98 void pointLabelsColorChanged(const QColor &color);
94 void pointLabelsColorChanged(const QColor &color);
99
95
100 private:
96 private:
101 Q_DECLARE_PRIVATE(QAreaSeries)
97 Q_DECLARE_PRIVATE(QAreaSeries)
102 Q_DISABLE_COPY(QAreaSeries)
98 Q_DISABLE_COPY(QAreaSeries)
103 friend class AreaLegendMarker;
99 friend class AreaLegendMarker;
104 friend class AreaChartItem;
100 friend class AreaChartItem;
105 friend class QAreaLegendMarkerPrivate;
101 friend class QAreaLegendMarkerPrivate;
106 };
102 };
107
103
108 QTCOMMERCIALCHART_END_NAMESPACE
104 QTCOMMERCIALCHART_END_NAMESPACE
109
105
110 #endif // QAREASERIES_H
106 #endif // QAREASERIES_H
@@ -1,107 +1,105
1 /****************************************************************************
1 /****************************************************************************
2 **
2 **
3 ** Copyright (C) 2014 Digia Plc
3 ** Copyright (C) 2014 Digia Plc
4 ** All rights reserved.
4 ** All rights reserved.
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
6 **
6 **
7 ** This file is part of the Qt Enterprise Charts Add-on.
7 ** This file is part of the Qt Enterprise Charts Add-on.
8 **
8 **
9 ** $QT_BEGIN_LICENSE$
9 ** $QT_BEGIN_LICENSE$
10 ** Licensees holding valid Qt Enterprise licenses may use this file in
10 ** Licensees holding valid Qt Enterprise licenses may use this file in
11 ** accordance with the Qt Enterprise License Agreement provided with the
11 ** accordance with the Qt Enterprise License Agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia.
13 ** a written agreement between you and Digia.
14 **
14 **
15 ** If you have questions regarding the use of this file, please use
15 ** If you have questions regarding the use of this file, please use
16 ** contact form at http://qt.digia.com
16 ** contact form at http://qt.digia.com
17 ** $QT_END_LICENSE$
17 ** $QT_END_LICENSE$
18 **
18 **
19 ****************************************************************************/
19 ****************************************************************************/
20
20
21 #ifndef QABSTRACTBARSERIES_H
21 #ifndef QABSTRACTBARSERIES_H
22 #define QABSTRACTBARSERIES_H
22 #define QABSTRACTBARSERIES_H
23
23
24 #include <qabstractseries.h>
24 #include <qabstractseries.h>
25 #include <QStringList>
25 #include <QStringList>
26
26
27 QTCOMMERCIALCHART_BEGIN_NAMESPACE
27 QTCOMMERCIALCHART_BEGIN_NAMESPACE
28
28
29 class QBarSet;
29 class QBarSet;
30 class QAbstractBarSeriesPrivate;
30 class QAbstractBarSeriesPrivate;
31
31
32 // Container for series
32 // Container for series
33 class QTCOMMERCIALCHART_EXPORT QAbstractBarSeries : public QAbstractSeries
33 class QTCOMMERCIALCHART_EXPORT QAbstractBarSeries : public QAbstractSeries
34 {
34 {
35 Q_OBJECT
35 Q_OBJECT
36 Q_PROPERTY(qreal barWidth READ barWidth WRITE setBarWidth)
36 Q_PROPERTY(qreal barWidth READ barWidth WRITE setBarWidth)
37 Q_PROPERTY(int count READ count NOTIFY countChanged)
37 Q_PROPERTY(int count READ count NOTIFY countChanged)
38 Q_PROPERTY(bool labelsVisible READ isLabelsVisible WRITE setLabelsVisible NOTIFY labelsVisibleChanged)
38 Q_PROPERTY(bool labelsVisible READ isLabelsVisible WRITE setLabelsVisible NOTIFY labelsVisibleChanged)
39 Q_PROPERTY(QString labelsFormat READ labelsFormat WRITE setLabelsFormat
39 Q_PROPERTY(QString labelsFormat READ labelsFormat WRITE setLabelsFormat NOTIFY labelsFormatChanged)
40 NOTIFY labelsFormatChanged)
40 Q_PROPERTY(LabelsPosition labelsPosition READ labelsPosition WRITE setLabelsPosition NOTIFY labelsPositionChanged)
41 Q_PROPERTY(LabelsPosition labelsPosition READ labelsPosition
42 WRITE setLabelsPosition NOTIFY labelsPositionChanged)
43 Q_ENUMS(LabelsPosition)
41 Q_ENUMS(LabelsPosition)
44
42
45 public:
43 public:
46 enum LabelsPosition {
44 enum LabelsPosition {
47 LabelsCenter = 0,
45 LabelsCenter = 0,
48 LabelsInsideEnd,
46 LabelsInsideEnd,
49 LabelsInsideBase,
47 LabelsInsideBase,
50 LabelsOutsideEnd
48 LabelsOutsideEnd
51 };
49 };
52
50
53 public:
51 public:
54 virtual ~QAbstractBarSeries();
52 virtual ~QAbstractBarSeries();
55
53
56 void setBarWidth(qreal width);
54 void setBarWidth(qreal width);
57 qreal barWidth() const;
55 qreal barWidth() const;
58
56
59 bool append(QBarSet *set);
57 bool append(QBarSet *set);
60 bool remove(QBarSet *set);
58 bool remove(QBarSet *set);
61 bool take(QBarSet *set);
59 bool take(QBarSet *set);
62 bool append(QList<QBarSet *> sets);
60 bool append(QList<QBarSet *> sets);
63 bool insert(int index, QBarSet *set);
61 bool insert(int index, QBarSet *set);
64 int count() const;
62 int count() const;
65 QList<QBarSet *> barSets() const;
63 QList<QBarSet *> barSets() const;
66 void clear();
64 void clear();
67
65
68 void setLabelsVisible(bool visible = true);
66 void setLabelsVisible(bool visible = true);
69 bool isLabelsVisible() const;
67 bool isLabelsVisible() const;
70
68
71 void setLabelsFormat(const QString &format);
69 void setLabelsFormat(const QString &format);
72 QString labelsFormat() const;
70 QString labelsFormat() const;
73
71
74 void setLabelsPosition(QAbstractBarSeries::LabelsPosition position);
72 void setLabelsPosition(QAbstractBarSeries::LabelsPosition position);
75 QAbstractBarSeries::LabelsPosition labelsPosition() const;
73 QAbstractBarSeries::LabelsPosition labelsPosition() const;
76
74
77 protected:
75 protected:
78 explicit QAbstractBarSeries(QAbstractBarSeriesPrivate &d, QObject *parent = 0);
76 explicit QAbstractBarSeries(QAbstractBarSeriesPrivate &d, QObject *parent = 0);
79
77
80 Q_SIGNALS:
78 Q_SIGNALS:
81 void clicked(int index, QBarSet *barset);
79 void clicked(int index, QBarSet *barset);
82 void hovered(bool status, QBarSet *barset);
80 void hovered(bool status, QBarSet *barset);
83 void hovered(bool status, int index, QBarSet *barset);
81 void hovered(bool status, int index, QBarSet *barset);
84 void countChanged();
82 void countChanged();
85 void labelsVisibleChanged();
83 void labelsVisibleChanged();
86 void labelsFormatChanged(const QString &format);
84 void labelsFormatChanged(const QString &format);
87 void labelsPositionChanged(QAbstractBarSeries::LabelsPosition position);
85 void labelsPositionChanged(QAbstractBarSeries::LabelsPosition position);
88
86
89 void barsetsAdded(QList<QBarSet *> sets);
87 void barsetsAdded(QList<QBarSet *> sets);
90 void barsetsRemoved(QList<QBarSet *> sets);
88 void barsetsRemoved(QList<QBarSet *> sets);
91
89
92 protected:
90 protected:
93 Q_DECLARE_PRIVATE(QAbstractBarSeries)
91 Q_DECLARE_PRIVATE(QAbstractBarSeries)
94 friend class AbstractBarChartItem;
92 friend class AbstractBarChartItem;
95 friend class PercentBarChartItem;
93 friend class PercentBarChartItem;
96 friend class StackedBarChartItem;
94 friend class StackedBarChartItem;
97 friend class BoxPlotChartItem;
95 friend class BoxPlotChartItem;
98 friend class BarChartItem;
96 friend class BarChartItem;
99 friend class HorizontalBarChartItem;
97 friend class HorizontalBarChartItem;
100 friend class HorizontalStackedBarChartItem;
98 friend class HorizontalStackedBarChartItem;
101 friend class HorizontalPercentBarChartItem;
99 friend class HorizontalPercentBarChartItem;
102 friend class BarSet;
100 friend class BarSet;
103 };
101 };
104
102
105 QTCOMMERCIALCHART_END_NAMESPACE
103 QTCOMMERCIALCHART_END_NAMESPACE
106
104
107 #endif // QABSTRACTBARSERIES_H
105 #endif // QABSTRACTBARSERIES_H
@@ -1,124 +1,120
1 /****************************************************************************
1 /****************************************************************************
2 **
2 **
3 ** Copyright (C) 2014 Digia Plc
3 ** Copyright (C) 2014 Digia Plc
4 ** All rights reserved.
4 ** All rights reserved.
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
6 **
6 **
7 ** This file is part of the Qt Enterprise Charts Add-on.
7 ** This file is part of the Qt Enterprise Charts Add-on.
8 **
8 **
9 ** $QT_BEGIN_LICENSE$
9 ** $QT_BEGIN_LICENSE$
10 ** Licensees holding valid Qt Enterprise licenses may use this file in
10 ** Licensees holding valid Qt Enterprise licenses may use this file in
11 ** accordance with the Qt Enterprise License Agreement provided with the
11 ** accordance with the Qt Enterprise License Agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia.
13 ** a written agreement between you and Digia.
14 **
14 **
15 ** If you have questions regarding the use of this file, please use
15 ** If you have questions regarding the use of this file, please use
16 ** contact form at http://qt.digia.com
16 ** contact form at http://qt.digia.com
17 ** $QT_END_LICENSE$
17 ** $QT_END_LICENSE$
18 **
18 **
19 ****************************************************************************/
19 ****************************************************************************/
20
20
21 #ifndef QXYSERIES_H
21 #ifndef QXYSERIES_H
22 #define QXYSERIES_H
22 #define QXYSERIES_H
23
23
24 #include <qchartglobal.h>
24 #include <qchartglobal.h>
25 #include <qabstractseries.h>
25 #include <qabstractseries.h>
26 #include <QPen>
26 #include <QPen>
27 #include <QBrush>
27 #include <QBrush>
28
28
29 class QModelIndex;
29 class QModelIndex;
30
30
31 QTCOMMERCIALCHART_BEGIN_NAMESPACE
31 QTCOMMERCIALCHART_BEGIN_NAMESPACE
32
32
33 class QXYSeriesPrivate;
33 class QXYSeriesPrivate;
34 class QXYModelMapper;
34 class QXYModelMapper;
35
35
36 class QTCOMMERCIALCHART_EXPORT QXYSeries : public QAbstractSeries
36 class QTCOMMERCIALCHART_EXPORT QXYSeries : public QAbstractSeries
37 {
37 {
38 Q_OBJECT
38 Q_OBJECT
39 Q_PROPERTY(bool pointsVisible READ pointsVisible WRITE setPointsVisible)
39 Q_PROPERTY(bool pointsVisible READ pointsVisible WRITE setPointsVisible)
40 Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
40 Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
41 Q_PROPERTY(QString pointLabelsFormat READ pointLabelsFormat WRITE setPointLabelsFormat
41 Q_PROPERTY(QString pointLabelsFormat READ pointLabelsFormat WRITE setPointLabelsFormat NOTIFY pointLabelsFormatChanged)
42 NOTIFY pointLabelsFormatChanged)
42 Q_PROPERTY(bool pointLabelsVisible READ pointLabelsVisible WRITE setPointLabelsVisible NOTIFY pointLabelsVisibilityChanged)
43 Q_PROPERTY(bool pointLabelsVisible READ pointLabelsVisible WRITE setPointLabelsVisible
43 Q_PROPERTY(QFont pointLabelsFont READ pointLabelsFont WRITE setPointLabelsFont NOTIFY pointLabelsFontChanged)
44 NOTIFY pointLabelsVisibilityChanged)
44 Q_PROPERTY(QColor pointLabelsColor READ pointLabelsColor WRITE setPointLabelsColor NOTIFY pointLabelsColorChanged)
45 Q_PROPERTY(QFont pointLabelsFont READ pointLabelsFont WRITE setPointLabelsFont
46 NOTIFY pointLabelsFontChanged)
47 Q_PROPERTY(QColor pointLabelsColor READ pointLabelsColor WRITE setPointLabelsColor
48 NOTIFY pointLabelsColorChanged)
49
45
50 protected:
46 protected:
51 explicit QXYSeries(QXYSeriesPrivate &d, QObject *parent = 0);
47 explicit QXYSeries(QXYSeriesPrivate &d, QObject *parent = 0);
52
48
53 public:
49 public:
54 ~QXYSeries();
50 ~QXYSeries();
55 void append(qreal x, qreal y);
51 void append(qreal x, qreal y);
56 void append(const QPointF &point);
52 void append(const QPointF &point);
57 void append(const QList<QPointF> &points);
53 void append(const QList<QPointF> &points);
58 void replace(qreal oldX, qreal oldY, qreal newX, qreal newY);
54 void replace(qreal oldX, qreal oldY, qreal newX, qreal newY);
59 void replace(const QPointF &oldPoint, const QPointF &newPoint);
55 void replace(const QPointF &oldPoint, const QPointF &newPoint);
60 void replace(int index, qreal newX, qreal newY);
56 void replace(int index, qreal newX, qreal newY);
61 void replace(int index, const QPointF &newPoint);
57 void replace(int index, const QPointF &newPoint);
62 void remove(qreal x, qreal y);
58 void remove(qreal x, qreal y);
63 void remove(const QPointF &point);
59 void remove(const QPointF &point);
64 void remove(int index);
60 void remove(int index);
65 void insert(int index, const QPointF &point);
61 void insert(int index, const QPointF &point);
66 void clear();
62 void clear();
67
63
68 int count() const;
64 int count() const;
69 QList<QPointF> points() const;
65 QList<QPointF> points() const;
70 const QPointF &at(int index) const;
66 const QPointF &at(int index) const;
71
67
72 QXYSeries &operator << (const QPointF &point);
68 QXYSeries &operator << (const QPointF &point);
73 QXYSeries &operator << (const QList<QPointF> &points);
69 QXYSeries &operator << (const QList<QPointF> &points);
74
70
75 virtual void setPen(const QPen &pen);
71 virtual void setPen(const QPen &pen);
76 QPen pen() const;
72 QPen pen() const;
77
73
78 virtual void setBrush(const QBrush &brush);
74 virtual void setBrush(const QBrush &brush);
79 QBrush brush() const;
75 QBrush brush() const;
80
76
81 virtual void setColor(const QColor &color);
77 virtual void setColor(const QColor &color);
82 virtual QColor color() const;
78 virtual QColor color() const;
83
79
84 void setPointsVisible(bool visible = true);
80 void setPointsVisible(bool visible = true);
85 bool pointsVisible() const;
81 bool pointsVisible() const;
86
82
87 void setPointLabelsFormat(const QString &format);
83 void setPointLabelsFormat(const QString &format);
88 QString pointLabelsFormat() const;
84 QString pointLabelsFormat() const;
89
85
90 void setPointLabelsVisible(bool visible = true);
86 void setPointLabelsVisible(bool visible = true);
91 bool pointLabelsVisible() const;
87 bool pointLabelsVisible() const;
92
88
93 void setPointLabelsFont(const QFont &font);
89 void setPointLabelsFont(const QFont &font);
94 QFont pointLabelsFont() const;
90 QFont pointLabelsFont() const;
95
91
96 void setPointLabelsColor(const QColor &color);
92 void setPointLabelsColor(const QColor &color);
97 QColor pointLabelsColor() const;
93 QColor pointLabelsColor() const;
98
94
99 void replace(QList<QPointF> points);
95 void replace(QList<QPointF> points);
100
96
101 Q_SIGNALS:
97 Q_SIGNALS:
102 void clicked(const QPointF &point);
98 void clicked(const QPointF &point);
103 void hovered(const QPointF &point, bool state);
99 void hovered(const QPointF &point, bool state);
104 void pointReplaced(int index);
100 void pointReplaced(int index);
105 void pointRemoved(int index);
101 void pointRemoved(int index);
106 void pointAdded(int index);
102 void pointAdded(int index);
107 void colorChanged(QColor color);
103 void colorChanged(QColor color);
108 void pointsReplaced();
104 void pointsReplaced();
109 void pointLabelsFormatChanged(const QString &format);
105 void pointLabelsFormatChanged(const QString &format);
110 void pointLabelsVisibilityChanged(bool visible);
106 void pointLabelsVisibilityChanged(bool visible);
111 void pointLabelsFontChanged(const QFont &font);
107 void pointLabelsFontChanged(const QFont &font);
112 void pointLabelsColorChanged(const QColor &color);
108 void pointLabelsColorChanged(const QColor &color);
113
109
114 private:
110 private:
115 Q_DECLARE_PRIVATE(QXYSeries)
111 Q_DECLARE_PRIVATE(QXYSeries)
116 Q_DISABLE_COPY(QXYSeries)
112 Q_DISABLE_COPY(QXYSeries)
117 friend class QXYLegendMarkerPrivate;
113 friend class QXYLegendMarkerPrivate;
118 friend class XYLegendMarker;
114 friend class XYLegendMarker;
119 friend class XYChart;
115 friend class XYChart;
120 };
116 };
121
117
122 QTCOMMERCIALCHART_END_NAMESPACE
118 QTCOMMERCIALCHART_END_NAMESPACE
123
119
124 #endif // QXYSERIES_H
120 #endif // QXYSERIES_H
General Comments 0
You need to be logged in to leave comments. Login now