##// END OF EJS Templates
QChart and QChartView now has some description for all the functions
QChart and QChartView now has some description for all the functions

File last commit:

r282:2a015f15bbd4
r287:6e151fb989cd
Show More
qbarchartseries.h
59 lines | 1.5 KiB | text/x-c | CLexer
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 #ifndef BARCHARTSERIES_H
#define BARCHARTSERIES_H
sauimone
removed barchartseriesbase. functionality is now in model
r172 #include "qchartseries.h"
sauimone
BarGroup and Bar as ChartItems instead of GraphicItems
r74
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 QTCOMMERCIALCHART_BEGIN_NAMESPACE
sauimone
removed barchartseriesbase. functionality is now in model
r172 class QBarCategory;
class QBarSet;
class BarChartModel;
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 // Container for series
sauimone
Common naming convention for barcharts
r216 class QTCOMMERCIALCHART_EXPORT QBarChartSeries : public QChartSeries
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 {
sauimone
Improved bar chart series
r71 Q_OBJECT
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 public:
sauimone
Common naming convention for barcharts
r216 QBarChartSeries(QBarCategory *category, QObject* parent=0);
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
virtual QChartSeriesType type() const { return QChartSeries::SeriesTypeBar; }
sauimone
barcharts: added legend to model. added signals for hover events (for tooltip). updated examples
r280 void addBarSet(QBarSet *set); // Takes ownership of set
void removeBarSet(QBarSet *set); // Releases ownership, doesn't delete set
sauimone
Added pen & brush to QBarSet
r214 int countSets();
QBarSet* nextSet(bool getFirst=false); // Returns first set, if called with true
sauimone
Barset and barcategory implememtation. Updated test application
r171
sauimone
barcharts: added legend to model. added signals for hover events (for tooltip). updated examples
r280 QList<QString> legend(); // Returns legend of series (ie. names of all sets in series)
// Disabled by default. Call these to change behavior.
void enableFloatingValues(bool enabled=true);
void enableHoverNames(bool enabled=true);
sauimone
fixed bug in category implementation. model now owns the category and sets
r173
// TODO: Functions below this are not part of api and will be moved
// to private implementation, when we start using it (not part of api)
sauimone
removed barchartseriesbase. functionality is now in model
r172 int countCategories();
qreal min();
qreal max();
qreal valueAt(int set, int category);
qreal maxCategorySum();
BarChartModel& model();
signals:
void changed(int index);
sauimone
barcharts: added legend to model. added signals for hover events (for tooltip). updated examples
r280 // TODO: these to private implementation.
void floatingValuesEnabled(bool enabled);
void hoverNamesEnabled(bool enabled);
//public Q_SLOTS:
sauimone
Barset and barcategory implememtation. Updated test application
r171
sauimone
refactoring. QStackedBarSeries and QPercentBarSeries are now derived from QBarSeries.
r281 protected:
sauimone
removed barchartseriesbase. functionality is now in model
r172 BarChartModel* mModel;
sauimone
barcharts: added legend to model. added signals for hover events (for tooltip). updated examples
r280
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // BARCHARTSERIES_H