@@ -58,12 +58,19 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||||
58 | */ |
|
58 | */ | |
59 |
|
59 | |||
60 |
|
60 | |||
61 |
|
61 | /*! | ||
|
62 | Constructs empty QHorizontalBarSeries. | |||
|
63 | QHorizontalBarSeries is QObject which is a child of a \a parent. | |||
|
64 | */ | |||
62 | QHorizontalBarSeries::QHorizontalBarSeries(QObject *parent) : |
|
65 | QHorizontalBarSeries::QHorizontalBarSeries(QObject *parent) : | |
63 | QAbstractBarSeries(*new QHorizontalBarSeriesPrivate(this), parent) |
|
66 | QAbstractBarSeries(*new QHorizontalBarSeriesPrivate(this), parent) | |
64 | { |
|
67 | { | |
65 | } |
|
68 | } | |
66 |
|
69 | |||
|
70 | /*! | |||
|
71 | Destructor | |||
|
72 | Removes series from chart. | |||
|
73 | */ | |||
67 | QHorizontalBarSeries::~QHorizontalBarSeries() |
|
74 | QHorizontalBarSeries::~QHorizontalBarSeries() | |
68 | { |
|
75 | { | |
69 | Q_D(QHorizontalBarSeries); |
|
76 | Q_D(QHorizontalBarSeries); | |
@@ -72,6 +79,9 QHorizontalBarSeries::~QHorizontalBarSeries() | |||||
72 | } |
|
79 | } | |
73 | } |
|
80 | } | |
74 |
|
81 | |||
|
82 | /*! | |||
|
83 | Returns QChartSeries::SeriesTypeHorizontalBar. | |||
|
84 | */ | |||
75 | QAbstractSeries::SeriesType QHorizontalBarSeries::type() const |
|
85 | QAbstractSeries::SeriesType QHorizontalBarSeries::type() const | |
76 | { |
|
86 | { | |
77 | return QAbstractSeries::SeriesTypeHorizontalBar; |
|
87 | return QAbstractSeries::SeriesTypeHorizontalBar; |
@@ -8,16 +8,42 | |||||
8 |
|
8 | |||
9 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
9 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | |
10 |
|
10 | |||
|
11 | /*! | |||
|
12 | \class QHorizontalPercentBarSeries | |||
|
13 | \brief Series for creating horizontal percent bar chart | |||
|
14 | \mainclass | |||
|
15 | ||||
|
16 | QHorizontalPercentBarSeries represents a series of data shown as bars. The purpose of this class is to draw bars | |||
|
17 | as groups, where bars in same category are grouped next to each other. QHorizontalPercentBarSeries groups the data | |||
|
18 | from sets to categories, which are defined by a QStringList. | |||
|
19 | ||||
|
20 | See the \l {HorizontalPercentBarChart Example} {horizontal percent bar chart example} to learn how to create a horizontal percent bar chart. | |||
|
21 | \image examples_horizontalpercentbarchart.png | |||
|
22 | ||||
|
23 | \sa QBarSet, QBarSeries, QPercentBarSeries, QAbstractBarSeries, QStackedBarSeries, QHorizontalStackedBarSeries, QHorizontalBarSeries | |||
|
24 | */ | |||
|
25 | ||||
|
26 | /*! | |||
|
27 | Constructs empty QHorizontalPercentBarSeries. | |||
|
28 | QHorizontalPercentBarSeries is QObject which is a child of a \a parent. | |||
|
29 | */ | |||
11 | QHorizontalPercentBarSeries::QHorizontalPercentBarSeries(QObject *parent) : |
|
30 | QHorizontalPercentBarSeries::QHorizontalPercentBarSeries(QObject *parent) : | |
12 | QAbstractBarSeries(*new QHorizontalPercentBarSeriesPrivate(this), parent) |
|
31 | QAbstractBarSeries(*new QHorizontalPercentBarSeriesPrivate(this), parent) | |
13 | { |
|
32 | { | |
14 | } |
|
33 | } | |
15 |
|
34 | |||
|
35 | /*! | |||
|
36 | Returns QChartSeries::SeriesTypeHorizontalPercentBar. | |||
|
37 | */ | |||
16 | QAbstractSeries::SeriesType QHorizontalPercentBarSeries::type() const |
|
38 | QAbstractSeries::SeriesType QHorizontalPercentBarSeries::type() const | |
17 | { |
|
39 | { | |
18 | return QAbstractSeries::SeriesTypeHorizontalPercentBar; |
|
40 | return QAbstractSeries::SeriesTypeHorizontalPercentBar; | |
19 | } |
|
41 | } | |
20 |
|
42 | |||
|
43 | /*! | |||
|
44 | Destructor | |||
|
45 | Removes series from chart. | |||
|
46 | */ | |||
21 | QHorizontalPercentBarSeries::~QHorizontalPercentBarSeries() |
|
47 | QHorizontalPercentBarSeries::~QHorizontalPercentBarSeries() | |
22 | { |
|
48 | { | |
23 | Q_D(QHorizontalPercentBarSeries); |
|
49 | Q_D(QHorizontalPercentBarSeries); |
@@ -7,12 +7,34 | |||||
7 | #include "charttheme_p.h" |
|
7 | #include "charttheme_p.h" | |
8 |
|
8 | |||
9 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
9 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | |
|
10 | /*! | |||
|
11 | \class QHorizontalStackedBarSeries | |||
|
12 | \brief Series for creating horizontal stacked bar chart | |||
|
13 | \mainclass | |||
10 |
|
|
14 | ||
|
15 | QHorizontalStackedBarSeries represents a series of data shown as bars. The purpose of this class is to draw bars | |||
|
16 | as groups, where bars in same category are grouped next to each other. QHorizontalStackedBarSeries groups the data | |||
|
17 | from sets to categories, which are defined by a QStringList. | |||
|
18 | ||||
|
19 | See the \l {HorizontalStackedBarChart Example} {horizontal stacked bar chart example} to learn how to create a horizontal stacked bar chart. | |||
|
20 | \image examples_horizontalstackedbarchart.png | |||
|
21 | ||||
|
22 | \sa QBarSet, QBarSeries, QPercentBarSeries, QAbstractBarSeries, QStackedBarSeries, QHorizontalPercentBarSeries, QHorizontalBarSeries | |||
|
23 | */ | |||
|
24 | ||||
|
25 | /*! | |||
|
26 | Constructs empty QHorizontalStackedBarSeries. | |||
|
27 | QHorizontalStackedBarSeries is QObject which is a child of a \a parent. | |||
|
28 | */ | |||
11 | QHorizontalStackedBarSeries::QHorizontalStackedBarSeries(QObject *parent) : |
|
29 | QHorizontalStackedBarSeries::QHorizontalStackedBarSeries(QObject *parent) : | |
12 | QAbstractBarSeries(*new QHorizontalStackedBarSeriesPrivate(this), parent) |
|
30 | QAbstractBarSeries(*new QHorizontalStackedBarSeriesPrivate(this), parent) | |
13 | { |
|
31 | { | |
14 | } |
|
32 | } | |
15 |
|
33 | |||
|
34 | /*! | |||
|
35 | Destructor | |||
|
36 | Removes series from chart. | |||
|
37 | */ | |||
16 | QHorizontalStackedBarSeries::~QHorizontalStackedBarSeries() |
|
38 | QHorizontalStackedBarSeries::~QHorizontalStackedBarSeries() | |
17 | { |
|
39 | { | |
18 | Q_D(QHorizontalStackedBarSeries); |
|
40 | Q_D(QHorizontalStackedBarSeries); | |
@@ -21,6 +43,9 QHorizontalStackedBarSeries::~QHorizontalStackedBarSeries() | |||||
21 | } |
|
43 | } | |
22 | } |
|
44 | } | |
23 |
|
45 | |||
|
46 | /*! | |||
|
47 | Returns QChartSeries::SeriesTypeHorizontalStackedBar. | |||
|
48 | */ | |||
24 | QAbstractSeries::SeriesType QHorizontalStackedBarSeries::type() const |
|
49 | QAbstractSeries::SeriesType QHorizontalStackedBarSeries::type() const | |
25 | { |
|
50 | { | |
26 | return QAbstractSeries::SeriesTypeHorizontalStackedBar; |
|
51 | return QAbstractSeries::SeriesTypeHorizontalStackedBar; |
General Comments 0
You need to be logged in to leave comments.
Login now