| 1 | // Copyright (C) 2016 The Qt Company Ltd. | 
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only | 
| 3 |  | 
| 4 | //  W A R N I N G | 
| 5 | //  ------------- | 
| 6 | // | 
| 7 | // This file is not part of the Qt Chart API.  It exists purely as an | 
| 8 | // implementation detail.  This header file may change from version to | 
| 9 | // version without notice, or even be removed. | 
| 10 | // | 
| 11 | // We mean it. | 
| 12 |  | 
| 13 | #ifndef HORIZONTALSTACKEDBARCHARTITEM_P_H | 
| 14 | #define HORIZONTALSTACKEDBARCHARTITEM_P_H | 
| 15 |  | 
| 16 | #include <private/abstractbarchartitem_p.h> | 
| 17 | #include <QtCharts/private/qchartglobal_p.h> | 
| 18 | #include <QtWidgets/QGraphicsItem> | 
| 19 |  | 
| 20 | QT_BEGIN_NAMESPACE | 
| 21 |  | 
| 22 | class Q_CHARTS_EXPORT HorizontalStackedBarChartItem : public AbstractBarChartItem | 
| 23 | { | 
| 24 |     Q_OBJECT | 
| 25 | public: | 
| 26 |     HorizontalStackedBarChartItem(QAbstractBarSeries *series, QGraphicsItem* item = 0); | 
| 27 |  | 
| 28 | private: | 
| 29 |     QList<QRectF> calculateLayout() override; | 
| 30 |     void initializeLayout(int set, int category, int layoutIndex, bool resetAnimation) override; | 
| 31 |     QPointF topLeftPoint(int category, qreal barWidth, qreal value); | 
| 32 |     QPointF bottomRightPoint(int category, qreal barWidth, qreal value); | 
| 33 | }; | 
| 34 |  | 
| 35 | QT_END_NAMESPACE | 
| 36 |  | 
| 37 | #endif // HORIZONTALSTACKEDBARCHARTITEM_P_H | 
| 38 |  |