##// END OF EJS Templates
exposing countcategories to user from barchartseries
sauimone -
r323:a2d7c580728d
parent child
Show More
@@ -55,6 +55,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
55
55
56 /*!
56 /*!
57 Constructs empty QBarChartSeries. Parameter \a category defines the categories for chart.
57 Constructs empty QBarChartSeries. Parameter \a category defines the categories for chart.
58 Takes ownership of \a category.
58 QBarChartSeries is QObject which is a child of a \a parent.
59 QBarChartSeries is QObject which is a child of a \a parent.
59 */
60 */
60 QBarChartSeries::QBarChartSeries(QBarCategory *category, QObject *parent)
61 QBarChartSeries::QBarChartSeries(QBarCategory *category, QObject *parent)
@@ -88,6 +89,14 int QBarChartSeries::countSets()
88 }
89 }
89
90
90 /*!
91 /*!
92 Returns number of categories in series
93 */
94 int QBarChartSeries::countCategories()
95 {
96 return mModel->countCategories();
97 }
98
99 /*!
91 Simple iterator for set. Returns pointer to next set in series.
100 Simple iterator for set. Returns pointer to next set in series.
92 Returns first set, if parameter \a getFirst is true.
101 Returns first set, if parameter \a getFirst is true.
93 If series is empty, returns 0.
102 If series is empty, returns 0.
@@ -177,14 +186,6 void QBarChartSeries::enableSeparators(bool enabled)
177 /*!
186 /*!
178 \internal
187 \internal
179 */
188 */
180 int QBarChartSeries::countCategories()
181 {
182 return mModel->countCategories();
183 }
184
185 /*!
186 \internal
187 */
188 qreal QBarChartSeries::min()
189 qreal QBarChartSeries::min()
189 {
190 {
190 return mModel->min();
191 return mModel->min();
@@ -21,6 +21,7 public:
21 void addBarSet(QBarSet *set); // Takes ownership of set
21 void addBarSet(QBarSet *set); // Takes ownership of set
22 void removeBarSet(QBarSet *set); // Releases ownership, doesn't delete set
22 void removeBarSet(QBarSet *set); // Releases ownership, doesn't delete set
23 int countSets();
23 int countSets();
24 int countCategories();
24 QBarSet* nextSet(bool getFirst=false); // Returns first set, if called with true
25 QBarSet* nextSet(bool getFirst=false); // Returns first set, if called with true
25 QBarSet *setAt(int index);
26 QBarSet *setAt(int index);
26
27
@@ -31,7 +32,6 public:
31 // to private implementation, when we start using it
32 // to private implementation, when we start using it
32 // TODO: TO PIMPL --->
33 // TODO: TO PIMPL --->
33 QString label(int category);
34 QString label(int category);
34 int countCategories();
35 qreal min();
35 qreal min();
36 qreal max();
36 qreal max();
37 qreal valueAt(int set, int category);
37 qreal valueAt(int set, int category);
General Comments 0
You need to be logged in to leave comments. Login now