From 15a5429df290add32e6d296cf5932b8028aa726c 2013-04-08 11:03:12 From: Mika Salmela Date: 2013-04-08 11:03:12 Subject: [PATCH] Added BoxPlot type to axis handling. Change-Id: Ib5153afb4ccbd7b71b5d5ee7ed3ccefaeb382c15 Reviewed-by: Mika Salmela --- diff --git a/src/barchart/qabstractbarseries.cpp b/src/barchart/qabstractbarseries.cpp index 51be5de..fe67f4e 100644 --- a/src/barchart/qabstractbarseries.cpp +++ b/src/barchart/qabstractbarseries.cpp @@ -786,6 +786,7 @@ void QAbstractBarSeriesPrivate::initializeAxes() case QAbstractSeries::SeriesTypeBar: case QAbstractSeries::SeriesTypePercentBar: case QAbstractSeries::SeriesTypeStackedBar: + case QAbstractSeries::SeriesTypeBoxPlot: if (axis->orientation() == Qt::Horizontal) populateCategories(qobject_cast(axis)); break; @@ -811,6 +812,7 @@ QAbstractAxis::AxisType QAbstractBarSeriesPrivate::defaultAxisType(Qt::Orientati case QAbstractSeries::SeriesTypeBar: case QAbstractSeries::SeriesTypePercentBar: case QAbstractSeries::SeriesTypeStackedBar: + case QAbstractSeries::SeriesTypeBoxPlot: if (orientation == Qt::Horizontal) return QAbstractAxis::AxisTypeBarCategory; break;