chartbarcategoryaxisy_p.h
59 lines
| 1.7 KiB
| text/x-c
|
CLexer
|
r1555 | /**************************************************************************** | ||
** | ||||
|
r2776 | ** Copyright (C) 2015 The Qt Company Ltd | ||
|
r1555 | ** All rights reserved. | ||
|
r2776 | ** For any questions to The Qt Company, please use contact form at http://qt.io | ||
|
r1555 | ** | ||
|
r2740 | ** This file is part of the Qt Charts module. | ||
|
r1555 | ** | ||
|
r2740 | ** Licensees holding valid commercial license for Qt may use this file in | ||
** accordance with the Qt License Agreement provided with the Software | ||||
** or, alternatively, in accordance with the terms contained in a written | ||||
|
r2776 | ** agreement between you and The Qt Company. | ||
|
r1555 | ** | ||
** If you have questions regarding the use of this file, please use | ||||
|
r2740 | ** contact form at http://qt.io | ||
|
r1555 | ** | ||
****************************************************************************/ | ||||
// W A R N I N G | ||||
// ------------- | ||||
// | ||||
|
r2574 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an | ||
|
r1555 | // implementation detail. This header file may change from version to | ||
// version without notice, or even be removed. | ||||
// | ||||
// We mean it. | ||||
|
r1935 | #ifndef CHARTBARCATEGORYAXISY_H | ||
#define CHARTBARCATEGORYAXISY_H | ||||
|
r1555 | |||
|
r2714 | #include <private/verticalaxis_p.h> | ||
|
r1555 | |||
|
r2712 | QT_CHARTS_BEGIN_NAMESPACE | ||
|
r1555 | |||
|
r1808 | class QBarCategoryAxis; | ||
|
r1555 | class ChartPresenter; | ||
|
r2111 | class ChartBarCategoryAxisY : public VerticalAxis | ||
|
r1555 | { | ||
|
r2306 | Q_OBJECT | ||
|
r1555 | public: | ||
|
r2273 | ChartBarCategoryAxisY(QBarCategoryAxis *axis, QGraphicsItem* item = 0); | ||
|
r1918 | ~ChartBarCategoryAxisY(); | ||
|
r1555 | |||
|
r2104 | QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint) const; | ||
|
r1555 | protected: | ||
QVector<qreal> calculateLayout() const; | ||||
void updateGeometry(); | ||||
|
r1720 | private: | ||
QStringList createCategoryLabels(const QVector<qreal>& layout) const; | ||||
|
r2097 | public Q_SLOTS: | ||
|
r2306 | void handleCategoriesChanged(); | ||
|
r1577 | private: | ||
|
r1808 | QBarCategoryAxis *m_categoriesAxis; | ||
|
r1555 | }; | ||
|
r2712 | QT_CHARTS_END_NAMESPACE | ||
|
r1555 | |||
|
r1935 | #endif /* CHARTBARCATEGORYAXISY_H */ | ||