@@ -777,22 +777,22 void QAbstractBarSeriesPrivate::initializeAxes() | |||||
777 |
|
777 | |||
778 | if (axis->type() == QAbstractAxis::AxisTypeBarCategory) { |
|
778 | if (axis->type() == QAbstractAxis::AxisTypeBarCategory) { | |
779 | switch (q->type()) { |
|
779 | switch (q->type()) { | |
780 |
|
|
780 | case QAbstractSeries::SeriesTypeHorizontalBar: | |
781 |
|
|
781 | case QAbstractSeries::SeriesTypeHorizontalPercentBar: | |
782 |
|
|
782 | case QAbstractSeries::SeriesTypeHorizontalStackedBar: | |
783 | if (axis->orientation() == Qt::Vertical) |
|
783 | if (axis->orientation() == Qt::Vertical) | |
784 | populateCategories(qobject_cast<QBarCategoryAxis *>(axis)); |
|
784 | populateCategories(qobject_cast<QBarCategoryAxis *>(axis)); | |
785 |
|
|
785 | break; | |
786 |
|
|
786 | case QAbstractSeries::SeriesTypeBar: | |
787 |
|
|
787 | case QAbstractSeries::SeriesTypePercentBar: | |
788 |
|
|
788 | case QAbstractSeries::SeriesTypeStackedBar: | |
789 |
|
|
789 | case QAbstractSeries::SeriesTypeBoxPlot: | |
790 | if (axis->orientation() == Qt::Horizontal) |
|
790 | if (axis->orientation() == Qt::Horizontal) | |
791 | populateCategories(qobject_cast<QBarCategoryAxis *>(axis)); |
|
791 | populateCategories(qobject_cast<QBarCategoryAxis *>(axis)); | |
792 |
|
|
792 | break; | |
793 |
|
|
793 | default: | |
794 | qWarning() << "Unexpected series type"; |
|
794 | qWarning() << "Unexpected series type"; | |
795 |
|
|
795 | break; | |
796 | } |
|
796 | } | |
797 | } |
|
797 | } | |
798 | } |
|
798 | } |
General Comments 0
You need to be logged in to leave comments.
Login now