diff --git a/src/axis/barcategoryaxis/chartbarcategoryaxisx.cpp b/src/axis/barcategoryaxis/chartbarcategoryaxisx.cpp index e10367f..072c1fd 100644 --- a/src/axis/barcategoryaxis/chartbarcategoryaxisx.cpp +++ b/src/axis/barcategoryaxis/chartbarcategoryaxisx.cpp @@ -28,17 +28,17 @@ static int label_padding = 5; QTCOMMERCIALCHART_BEGIN_NAMESPACE -ChartCategoriesAxisX::ChartCategoriesAxisX(QBarCategoryAxis *axis,ChartPresenter *presenter) : ChartAxis(axis,presenter), +ChartBarCategoryAxisX::ChartBarCategoryAxisX(QBarCategoryAxis *axis,ChartPresenter *presenter) : ChartAxis(axis,presenter), m_categoriesAxis(axis) { } -ChartCategoriesAxisX::~ChartCategoriesAxisX() +ChartBarCategoryAxisX::~ChartBarCategoryAxisX() { } -QVector ChartCategoriesAxisX::calculateLayout() const +QVector ChartBarCategoryAxisX::calculateLayout() const { int count = m_categoriesAxis->d_ptr->count(); @@ -69,7 +69,7 @@ QVector ChartCategoriesAxisX::calculateLayout() const return points; } -QStringList ChartCategoriesAxisX::createCategoryLabels(const QVector& layout) const +QStringList ChartBarCategoryAxisX::createCategoryLabels(const QVector& layout) const { QStringList result; qreal d = (m_max - m_min)/m_rect.width(); @@ -88,7 +88,7 @@ QStringList ChartCategoriesAxisX::createCategoryLabels(const QVector& lay } -void ChartCategoriesAxisX::updateGeometry() +void ChartBarCategoryAxisX::updateGeometry() { const QVector& layout = ChartAxis::layout(); @@ -148,7 +148,7 @@ void ChartCategoriesAxisX::updateGeometry() } } -void ChartCategoriesAxisX::handleAxisUpdated() +void ChartBarCategoryAxisX::handleAxisUpdated() { if(m_categoriesAxis->categories()!=m_categories) { diff --git a/src/axis/barcategoryaxis/chartbarcategoryaxisx_p.h b/src/axis/barcategoryaxis/chartbarcategoryaxisx_p.h index 33ed4e2..8bca232 100644 --- a/src/axis/barcategoryaxis/chartbarcategoryaxisx_p.h +++ b/src/axis/barcategoryaxis/chartbarcategoryaxisx_p.h @@ -38,11 +38,11 @@ class QAbstractAxis; class ChartPresenter; class QBarCategoryAxis; -class ChartCategoriesAxisX : public ChartAxis +class ChartBarCategoryAxisX : public ChartAxis { public: - ChartCategoriesAxisX(QBarCategoryAxis *axis, ChartPresenter *presenter); - ~ChartCategoriesAxisX(); + ChartBarCategoryAxisX(QBarCategoryAxis *axis, ChartPresenter *presenter); + ~ChartBarCategoryAxisX(); AxisType axisType() const { return X_AXIS;} diff --git a/src/axis/barcategoryaxis/chartbarcategoryaxisy.cpp b/src/axis/barcategoryaxis/chartbarcategoryaxisy.cpp index 45cc954..f560236 100644 --- a/src/axis/barcategoryaxis/chartbarcategoryaxisy.cpp +++ b/src/axis/barcategoryaxis/chartbarcategoryaxisy.cpp @@ -28,16 +28,16 @@ static int label_padding = 5; QTCOMMERCIALCHART_BEGIN_NAMESPACE -ChartCategoriesAxisY::ChartCategoriesAxisY(QBarCategoryAxis *axis,ChartPresenter *presenter) : ChartAxis(axis,presenter), +ChartBarCategoryAxisY::ChartBarCategoryAxisY(QBarCategoryAxis *axis,ChartPresenter *presenter) : ChartAxis(axis,presenter), m_categoriesAxis(axis) { } -ChartCategoriesAxisY::~ChartCategoriesAxisY() +ChartBarCategoryAxisY::~ChartBarCategoryAxisY() { } -QVector ChartCategoriesAxisY::calculateLayout() const +QVector ChartBarCategoryAxisY::calculateLayout() const { int count = m_categoriesAxis->d_ptr->count(); @@ -68,7 +68,7 @@ QVector ChartCategoriesAxisY::calculateLayout() const return points; } -QStringList ChartCategoriesAxisY::createCategoryLabels(const QVector& layout) const +QStringList ChartBarCategoryAxisY::createCategoryLabels(const QVector& layout) const { QStringList result; qreal d = (m_max - m_min)/m_rect.height(); @@ -86,7 +86,7 @@ QStringList ChartCategoriesAxisY::createCategoryLabels(const QVector& lay return result; } -void ChartCategoriesAxisY::updateGeometry() +void ChartBarCategoryAxisY::updateGeometry() { const QVector& layout = ChartAxis::layout(); @@ -147,7 +147,7 @@ void ChartCategoriesAxisY::updateGeometry() } } -void ChartCategoriesAxisY::handleAxisUpdated() +void ChartBarCategoryAxisY::handleAxisUpdated() { if(m_categoriesAxis->categories()!=m_categories) diff --git a/src/axis/barcategoryaxis/chartbarcategoryaxisy_p.h b/src/axis/barcategoryaxis/chartbarcategoryaxisy_p.h index 1a0b7c0..4ac4dba 100644 --- a/src/axis/barcategoryaxis/chartbarcategoryaxisy_p.h +++ b/src/axis/barcategoryaxis/chartbarcategoryaxisy_p.h @@ -38,11 +38,11 @@ class QAbstractAxis; class QBarCategoryAxis; class ChartPresenter; -class ChartCategoriesAxisY : public ChartAxis +class ChartBarCategoryAxisY : public ChartAxis { public: - ChartCategoriesAxisY(QBarCategoryAxis *axis, ChartPresenter *presenter); - ~ChartCategoriesAxisY(); + ChartBarCategoryAxisY(QBarCategoryAxis *axis, ChartPresenter *presenter); + ~ChartBarCategoryAxisY(); AxisType axisType() const { return Y_AXIS;} diff --git a/src/axis/barcategoryaxis/qbarcategoryaxis.cpp b/src/axis/barcategoryaxis/qbarcategoryaxis.cpp index 5013359..b61d069 100644 --- a/src/axis/barcategoryaxis/qbarcategoryaxis.cpp +++ b/src/axis/barcategoryaxis/qbarcategoryaxis.cpp @@ -446,9 +446,9 @@ ChartAxis* QBarCategoryAxisPrivate::createGraphics(ChartPresenter* presenter) { Q_Q(QBarCategoryAxis); if(m_orientation == Qt::Vertical){ - return new ChartCategoriesAxisY(q,presenter); + return new ChartBarCategoryAxisY(q,presenter); }else{ - return new ChartCategoriesAxisX(q,presenter); + return new ChartBarCategoryAxisX(q,presenter); } } diff --git a/src/axis/barcategoryaxis/qbarcategoryaxis.h b/src/axis/barcategoryaxis/qbarcategoryaxis.h index cb26bb4..2a4e507 100644 --- a/src/axis/barcategoryaxis/qbarcategoryaxis.h +++ b/src/axis/barcategoryaxis/qbarcategoryaxis.h @@ -70,8 +70,8 @@ Q_SIGNALS: private: Q_DECLARE_PRIVATE(QBarCategoryAxis) Q_DISABLE_COPY(QBarCategoryAxis) - friend class ChartCategoriesAxisX; - friend class ChartCategoriesAxisY; + friend class ChartBarCategoryAxisX; + friend class ChartBarCategoryAxisY; }; QTCOMMERCIALCHART_END_NAMESPACE