diff --git a/src/barchart/qhbarmodelmapper.cpp b/src/barchart/qhbarmodelmapper.cpp index c8fee85..2f516a9 100644 --- a/src/barchart/qhbarmodelmapper.cpp +++ b/src/barchart/qhbarmodelmapper.cpp @@ -5,6 +5,7 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE QHBarModelMapper::QHBarModelMapper(QObject *parent) : QBarModelMapper(parent) { + QBarModelMapper::setOrientation(Qt::Horizontal); } int QHBarModelMapper::firstBarRow() const diff --git a/src/barchart/qvbarmodelmapper.cpp b/src/barchart/qvbarmodelmapper.cpp index 206be46..548bac9 100644 --- a/src/barchart/qvbarmodelmapper.cpp +++ b/src/barchart/qvbarmodelmapper.cpp @@ -5,6 +5,7 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE QVBarModelMapper::QVBarModelMapper(QObject *parent) : QBarModelMapper(parent) { + QBarModelMapper::setOrientation(Qt::Vertical); } int QVBarModelMapper::firstBarColumn() const