##// END OF EJS Templates
Minor fix to pie model mapper
Marek Rosa -
r1330:80cc71f77e52
parent child
Show More
@@ -32,7 +32,7 class QTCOMMERCIALCHART_EXPORT QHPieModelMapper : public QPieModelMapper
32 Q_PROPERTY(int labelsRow READ labelsRow WRITE setLabelsRow)
32 Q_PROPERTY(int labelsRow READ labelsRow WRITE setLabelsRow)
33
33
34 public:
34 public:
35 QHPieModelMapper(QObject *parent = 0);
35 explicit QHPieModelMapper(QObject *parent = 0);
36
36
37 int valuesRow() const;
37 int valuesRow() const;
38 void setValuesRow(int valuesRow);
38 void setValuesRow(int valuesRow);
@@ -157,7 +157,6 void QPieModelMapper::reset()
157 Q_D(QPieModelMapper);
157 Q_D(QPieModelMapper);
158 d->m_first = 0;
158 d->m_first = 0;
159 d->m_count = -1;
159 d->m_count = -1;
160 d->m_orientation = Qt::Vertical;
161 d->m_valuesSection = -1;
160 d->m_valuesSection = -1;
162 d->m_labelsSection = -1;
161 d->m_labelsSection = -1;
163 }
162 }
@@ -30,7 +30,7 CustomTableModel::CustomTableModel(QObject *parent) :
30 qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
30 qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
31
31
32 m_columnCount = 7;
32 m_columnCount = 7;
33 m_rowCount = 1029;
33 m_rowCount = 29;
34
34
35 m_labels.append("Apples");
35 m_labels.append("Apples");
36 m_labels.append("Oranges");
36 m_labels.append("Oranges");
General Comments 0
You need to be logged in to leave comments. Login now