From 14f6406671e65eaa677efe5732777b1e0c00e34d 2012-05-31 07:53:38 From: Marek Rosa Date: 2012-05-31 07:53:38 Subject: [PATCH] Minor fix to barModelMapper --- 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