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