diff options
author | Michal Klocek <michal.klocek@digia.com> | 2012-07-17 12:40:05 +0300 |
---|---|---|
committer | Michal Klocek <michal.klocek@digia.com> | 2012-07-17 12:40:05 +0300 |
commit | a9fe09868de948d3a028f8b050b80aa8fe581b84 (patch) | |
tree | 45ea6f68c3fec6f1bfcf5a987a1fb1884b22aec4 /src/barchart/vertical/bar/barchartitem_p.h | |
parent | 368f6161c675c32d722f048a1ee12db1d4c3a085 (diff) |
Refactor barchart
* Move implmentation to specific directories
* Implement axis intialization and default only in base class since code is very trival
Diffstat (limited to 'src/barchart/vertical/bar/barchartitem_p.h')
-rw-r--r-- | src/barchart/vertical/bar/barchartitem_p.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/barchart/vertical/bar/barchartitem_p.h b/src/barchart/vertical/bar/barchartitem_p.h new file mode 100644 index 00000000..b4e0142a --- /dev/null +++ b/src/barchart/vertical/bar/barchartitem_p.h @@ -0,0 +1,52 @@ +/**************************************************************************** +** +** Copyright (C) 2012 Digia Plc +** All rights reserved. +** For any questions to Digia, please use contact form at http://qt.digia.com +** +** This file is part of the Qt Commercial Charts Add-on. +** +** $QT_BEGIN_LICENSE$ +** Licensees holding valid Qt Commercial licenses may use this file in +** accordance with the Qt Commercial License Agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. +** +** If you have questions regarding the use of this file, please use +** contact form at http://qt.digia.com +** $QT_END_LICENSE$ +** +****************************************************************************/ + +// W A R N I N G +// ------------- +// +// This file is not part of the QtCommercial Chart API. It exists purely as an +// implementation detail. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. + + +#ifndef BARCHARTITEM_H +#define BARCHARTITEM_H + +#include "abstractbarchartitem_p.h" +#include "qstackedbarseries.h" +#include <QGraphicsItem> + +QTCOMMERCIALCHART_BEGIN_NAMESPACE + +class BarChartItem : public AbstractBarChartItem +{ + Q_OBJECT +public: + BarChartItem(QAbstractBarSeries *series, ChartPresenter *presenter); + +private: + virtual QVector<QRectF> calculateLayout(); +}; + +QTCOMMERCIALCHART_END_NAMESPACE + +#endif // BARCHARTITEM_H |