@@ -34,8 +34,8 class QTCOMMERCIALCHART_EXPORT QAreaSeries : public QSeries | |||||
34 | { |
|
34 | { | |
35 | Q_OBJECT |
|
35 | Q_OBJECT | |
36 | public: |
|
36 | public: | |
37 | QAreaSeries(QLineSeries *upperSeries, QLineSeries *lowerSeries = 0); |
|
37 | explicit QAreaSeries(QLineSeries *upperSeries, QLineSeries *lowerSeries = 0); | |
38 |
|
|
38 | ~QAreaSeries(); | |
39 |
|
39 | |||
40 | public: |
|
40 | public: | |
41 | QSeries::QSeriesType type() const; |
|
41 | QSeries::QSeriesType type() const; |
@@ -111,7 +111,7 class AxisItem: public QGraphicsLineItem | |||||
111 | { |
|
111 | { | |
112 |
|
112 | |||
113 | public: |
|
113 | public: | |
114 | AxisItem(Axis *axis, QGraphicsItem *parent = 0) : QGraphicsLineItem(parent), m_axis(axis) {} |
|
114 | explicit AxisItem(Axis *axis, QGraphicsItem *parent = 0) : QGraphicsLineItem(parent), m_axis(axis) {} | |
115 |
|
115 | |||
116 | protected: |
|
116 | protected: | |
117 | void mousePressEvent(QGraphicsSceneMouseEvent *event) |
|
117 | void mousePressEvent(QGraphicsSceneMouseEvent *event) |
@@ -36,7 +36,7 class BarLabel : public QGraphicsObject | |||||
36 | { |
|
36 | { | |
37 | Q_OBJECT |
|
37 | Q_OBJECT | |
38 | public: |
|
38 | public: | |
39 | BarLabel(QBarSet &barSet, QGraphicsItem *parent = 0); |
|
39 | explicit BarLabel(QBarSet &barSet, QGraphicsItem *parent = 0); | |
40 |
|
40 | |||
41 | void setText(QString str); |
|
41 | void setText(QString str); | |
42 | QString text() const; |
|
42 | QString text() const; |
@@ -40,7 +40,7 class QTCOMMERCIALCHART_EXPORT QBarSeries : public QSeries | |||||
40 | { |
|
40 | { | |
41 | Q_OBJECT |
|
41 | Q_OBJECT | |
42 | public: |
|
42 | public: | |
43 | QBarSeries(QBarCategories categories, QObject *parent = 0); |
|
43 | explicit QBarSeries(QBarCategories categories, QObject *parent = 0); | |
44 |
|
44 | |||
45 | QSeries::QSeriesType type() const; |
|
45 | QSeries::QSeriesType type() const; | |
46 |
|
46 |
@@ -34,8 +34,8 class QTCOMMERCIALCHART_EXPORT QBarSet : public QObject | |||||
34 | Q_OBJECT |
|
34 | Q_OBJECT | |
35 |
|
35 | |||
36 | public: |
|
36 | public: | |
37 | QBarSet(QString name, QObject *parent = 0); |
|
37 | explicit QBarSet(QString name, QObject *parent = 0); | |
38 |
|
|
38 | ~QBarSet(); | |
39 |
|
39 | |||
40 | void setName(QString name); |
|
40 | void setName(QString name); | |
41 | QString name() const; |
|
41 | QString name() const; |
@@ -32,7 +32,7 class QTCOMMERCIALCHART_EXPORT QPercentBarSeries : public QBarSeries | |||||
32 | { |
|
32 | { | |
33 | Q_OBJECT |
|
33 | Q_OBJECT | |
34 | public: |
|
34 | public: | |
35 | QPercentBarSeries(QBarCategories categories, QObject *parent = 0); |
|
35 | explicit QPercentBarSeries(QBarCategories categories, QObject *parent = 0); | |
36 | QSeries::QSeriesType type() const; |
|
36 | QSeries::QSeriesType type() const; | |
37 | private: |
|
37 | private: | |
38 | Q_DECLARE_PRIVATE(QPercentBarSeries) |
|
38 | Q_DECLARE_PRIVATE(QPercentBarSeries) |
@@ -32,7 +32,7 class QTCOMMERCIALCHART_EXPORT QStackedBarSeries : public QBarSeries | |||||
32 | { |
|
32 | { | |
33 | Q_OBJECT |
|
33 | Q_OBJECT | |
34 | public: |
|
34 | public: | |
35 | QStackedBarSeries(QBarCategories categories, QObject *parent = 0); |
|
35 | explicit QStackedBarSeries(QBarCategories categories, QObject *parent = 0); | |
36 | QSeries::QSeriesType type() const; |
|
36 | QSeries::QSeriesType type() const; | |
37 | private: |
|
37 | private: | |
38 | Q_DECLARE_PRIVATE(QStackedBarSeries) |
|
38 | Q_DECLARE_PRIVATE(QStackedBarSeries) |
@@ -37,7 +37,7 class QTCOMMERCIALCHART_EXPORT QPieSeries : public QSeries | |||||
37 | Q_PROPERTY(qreal endAngle READ pieEndAngle WRITE setPieEndAngle) |
|
37 | Q_PROPERTY(qreal endAngle READ pieEndAngle WRITE setPieEndAngle) | |
38 |
|
38 | |||
39 | public: |
|
39 | public: | |
40 | QPieSeries(QObject *parent = 0); |
|
40 | explicit QPieSeries(QObject *parent = 0); | |
41 | virtual ~QPieSeries(); |
|
41 | virtual ~QPieSeries(); | |
42 |
|
42 | |||
43 | public: // from QChartSeries |
|
43 | public: // from QChartSeries |
@@ -37,7 +37,7 class QTCOMMERCIALCHART_EXPORT QPieSlice : public QObject | |||||
37 | Q_PROPERTY(qreal value READ value WRITE setValue NOTIFY changed) |
|
37 | Q_PROPERTY(qreal value READ value WRITE setValue NOTIFY changed) | |
38 |
|
38 | |||
39 | public: |
|
39 | public: | |
40 | QPieSlice(QObject *parent = 0); |
|
40 | explicit QPieSlice(QObject *parent = 0); | |
41 | QPieSlice(qreal value, QString label, QObject *parent = 0); |
|
41 | QPieSlice(qreal value, QString label, QObject *parent = 0); | |
42 | virtual ~QPieSlice(); |
|
42 | virtual ~QPieSlice(); | |
43 |
|
43 |
@@ -45,7 +45,7 class QLegend; | |||||
45 | class ScrollTicker : public QObject |
|
45 | class ScrollTicker : public QObject | |
46 | { |
|
46 | { | |
47 | public: |
|
47 | public: | |
48 | ScrollTicker(Scroller *scroller,QObject *parent=0); |
|
48 | explicit ScrollTicker(Scroller *scroller,QObject *parent = 0); | |
49 | void start(int interval); |
|
49 | void start(int interval); | |
50 | void stop(); |
|
50 | void stop(); | |
51 | protected: |
|
51 | protected: |
@@ -36,7 +36,7 class QTCOMMERCIALCHART_EXPORT QSplineSeries : public QLineSeries | |||||
36 | Q_OBJECT |
|
36 | Q_OBJECT | |
37 | public: |
|
37 | public: | |
38 |
|
38 | |||
39 | QSplineSeries(QObject *parent = 0); |
|
39 | explicit QSplineSeries(QObject *parent = 0); | |
40 | QSeries::QSeriesType type() const; |
|
40 | QSeries::QSeriesType type() const; | |
41 |
|
41 | |||
42 | QPointF controlPoint(int index) const; |
|
42 | QPointF controlPoint(int index) const; |
General Comments 0
You need to be logged in to leave comments.
Login now