qbarcategoryaxis_p.h
79 lines
| 2.1 KiB
| text/x-c
|
CLexer
|
r1613 | /**************************************************************************** | ||
** | ||||
|
r2776 | ** Copyright (C) 2015 The Qt Company Ltd | ||
|
r1613 | ** All rights reserved. | ||
|
r2776 | ** For any questions to The Qt Company, please use contact form at http://qt.io | ||
|
r1613 | ** | ||
|
r2740 | ** This file is part of the Qt Charts module. | ||
|
r1613 | ** | ||
|
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. | ||
|
r1613 | ** | ||
** If you have questions regarding the use of this file, please use | ||||
|
r2740 | ** contact form at http://qt.io | ||
|
r1613 | ** | ||
****************************************************************************/ | ||||
// W A R N I N G | ||||
// ------------- | ||||
// | ||||
|
r2574 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an | ||
|
r1613 | // implementation detail. This header file may change from version to | ||
// version without notice, or even be removed. | ||||
// | ||||
// We mean it. | ||||
|
r1935 | #ifndef QBARCATEGORYAXIS_P_H | ||
#define QBARCATEGORYAXIS_P_H | ||||
|
r1613 | |||
|
r2714 | #include <QtCharts/QBarCategoryAxis> | ||
#include <private/qabstractaxis_p.h> | ||||
|
r1613 | |||
|
r2712 | QT_CHARTS_BEGIN_NAMESPACE | ||
|
r1613 | |||
|
r2275 | class AbstractDomain; | ||
|
r1661 | |||
|
r1808 | class QBarCategoryAxisPrivate : public QAbstractAxisPrivate | ||
|
r1613 | { | ||
Q_OBJECT | ||||
public: | ||||
|
r1808 | QBarCategoryAxisPrivate(QBarCategoryAxis *q); | ||
~QBarCategoryAxisPrivate(); | ||||
|
r1613 | |||
public: | ||||
|
r2273 | void initializeGraphics(QGraphicsItem* parent); | ||
|
r2275 | void initializeDomain(AbstractDomain *domain); | ||
|
r2121 | void updateCategoryDomain(); | ||
|
r2273 | |||
//interface for manipulating range form base class | ||||
void setRange(const QVariant &min, const QVariant &max); | ||||
void setMin(const QVariant &min); | ||||
void setMax(const QVariant &max); | ||||
//interface manipulating range form domain | ||||
|
r2097 | qreal min() { return m_min; } | ||
qreal max() { return m_max; } | ||||
|
r2273 | void setRange(qreal min,qreal max); | ||
|
r1613 | |||
private: | ||||
//range handling | ||||
|
r2273 | void setRange(const QString &minCategory, const QString &maxCategory); | ||
|
r1613 | |||
private: | ||||
QStringList m_categories; | ||||
QString m_minCategory; | ||||
QString m_maxCategory; | ||||
|
r1716 | qreal m_min; | ||
qreal m_max; | ||||
|
r1725 | int m_count; | ||
|
r1613 | |||
private: | ||||
|
r1808 | Q_DECLARE_PUBLIC(QBarCategoryAxis); | ||
|
r1613 | }; | ||
|
r2712 | QT_CHARTS_END_NAMESPACE | ||
|
r1613 | |||
|
r1935 | #endif // QBARCATEGORYAXIS_P_H | ||