From 80cc71f77e525a51f845968d159e8197333060e4 2012-06-01 09:01:32 From: Marek Rosa Date: 2012-06-01 09:01:32 Subject: [PATCH] Minor fix to pie model mapper --- diff --git a/src/piechart/qhpiemodelmapper.h b/src/piechart/qhpiemodelmapper.h index 9795c05..ab0bcd4 100644 --- a/src/piechart/qhpiemodelmapper.h +++ b/src/piechart/qhpiemodelmapper.h @@ -32,7 +32,7 @@ class QTCOMMERCIALCHART_EXPORT QHPieModelMapper : public QPieModelMapper Q_PROPERTY(int labelsRow READ labelsRow WRITE setLabelsRow) public: - QHPieModelMapper(QObject *parent = 0); + explicit QHPieModelMapper(QObject *parent = 0); int valuesRow() const; void setValuesRow(int valuesRow); diff --git a/src/piechart/qpiemodelmapper.cpp b/src/piechart/qpiemodelmapper.cpp index 01abccf..85bf520 100644 --- a/src/piechart/qpiemodelmapper.cpp +++ b/src/piechart/qpiemodelmapper.cpp @@ -157,7 +157,6 @@ void QPieModelMapper::reset() Q_D(QPieModelMapper); d->m_first = 0; d->m_count = -1; - d->m_orientation = Qt::Vertical; d->m_valuesSection = -1; d->m_labelsSection = -1; } diff --git a/tests/tablemodelchart/customtablemodel.cpp b/tests/tablemodelchart/customtablemodel.cpp index 1d26362..80e682b 100644 --- a/tests/tablemodelchart/customtablemodel.cpp +++ b/tests/tablemodelchart/customtablemodel.cpp @@ -30,7 +30,7 @@ CustomTableModel::CustomTableModel(QObject *parent) : qsrand(QTime(0,0,0).secsTo(QTime::currentTime())); m_columnCount = 7; - m_rowCount = 1029; + m_rowCount = 29; m_labels.append("Apples"); m_labels.append("Oranges");