diff options
author | Michal Klocek <Michal.Klocek@digia.com> | 2012-11-16 13:21:46 +0200 |
---|---|---|
committer | Michal Klocek <Michal.Klocek@digia.com> | 2012-11-26 14:58:47 +0200 |
commit | 1c49aa901cb25b0bbdeb4922784fec273b97e781 (patch) | |
tree | 21469c4bf6070f109cb4dc12472f641c37644674 /src/chartitem_p.h | |
parent | b1616762bd1e13608c1040c543e909698670b519 (diff) |
Refactors internals
* rewrite axisUpdated signal handling
* create handlers for each property of axis
* decouple chartdataset, presenter, theme
* adds theme manager
* adds axis add/remove/attach/detach handling
* refactors createGraphics
* add initializers (graphics,domain,theme,animations)
* refactor the way the charts are constructed (decouple form presenter)
* fix initialization issues with qchart
* refactor domain logic to handle also geometry size for charts
* delegate xyseries geometry calculation to domian
* fix lazy initialization of animations
* remove hadnleGeomoetryChanged
* add shared pointers to handle reference count for domain
* moves nice number algorithm to domain
* adds applyNiceNumbers(), depreciate setNiceNumbers
* refactor multiple charts handling
* domain is shared object
* each domain can have multiple axis for controlling
* multiple charts share now the same domain
Diffstat (limited to 'src/chartitem_p.h')
-rw-r--r-- | src/chartitem_p.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/chartitem_p.h b/src/chartitem_p.h index fcdb6b4d..edcaa4de 100644 --- a/src/chartitem_p.h +++ b/src/chartitem_p.h @@ -36,11 +36,17 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE -class ChartItem : public QGraphicsItem, public ChartElement +class ChartItem : public ChartElement { + Q_OBJECT enum ChartItemTypes { AXIS_ITEM = UserType + 1, XYLINE_ITEM }; public: - ChartItem(ChartPresenter *presenter) : QGraphicsItem(presenter ? presenter->rootItem() : 0), ChartElement(presenter) {} + ChartItem(QAbstractSeriesPrivate *series,QGraphicsItem* item); + QSharedPointer<Domain> domain() const; +public Q_SLOTS: + virtual void handleDomainUpdated(); +private: + QAbstractSeriesPrivate* m_series; }; QTCOMMERCIALCHART_END_NAMESPACE |