@@ -501,7 +501,6 void QPieModelMapperPrivate::insertData(int start, int end) | |||||
501 | QPieSlice *slice = new QPieSlice; |
|
501 | QPieSlice *slice = new QPieSlice; | |
502 | slice->setValue(m_model->data(valueIndex, Qt::DisplayRole).toDouble()); |
|
502 | slice->setValue(m_model->data(valueIndex, Qt::DisplayRole).toDouble()); | |
503 | slice->setLabel(m_model->data(labelIndex, Qt::DisplayRole).toString()); |
|
503 | slice->setLabel(m_model->data(labelIndex, Qt::DisplayRole).toString()); | |
504 | slice->setLabelVisible(); |
|
|||
505 |
|
|
504 | connect(slice, SIGNAL(labelChanged()), this, SLOT(sliceLabelChanged())); | |
506 | connect(slice, SIGNAL(valueChanged()), this, SLOT(sliceValueChanged())); |
|
505 | connect(slice, SIGNAL(valueChanged()), this, SLOT(sliceValueChanged())); | |
507 | m_series->insert(i - m_first, slice); |
|
506 | m_series->insert(i - m_first, slice); | |
@@ -551,7 +550,6 void QPieModelMapperPrivate::removeData(int start, int end) | |||||
551 | QPieSlice *slice = new QPieSlice; |
|
550 | QPieSlice *slice = new QPieSlice; | |
552 | slice->setValue(m_model->data(valueIndex, Qt::DisplayRole).toDouble()); |
|
551 | slice->setValue(m_model->data(valueIndex, Qt::DisplayRole).toDouble()); | |
553 | slice->setLabel(m_model->data(labelIndex, Qt::DisplayRole).toString()); |
|
552 | slice->setLabel(m_model->data(labelIndex, Qt::DisplayRole).toString()); | |
554 | slice->setLabelVisible(); |
|
|||
555 | m_series->insert(i, slice); |
|
553 | m_series->insert(i, slice); | |
556 | m_slices.insert(i, slice); |
|
554 | m_slices.insert(i, slice); | |
557 | } |
|
555 | } | |
@@ -586,7 +584,6 void QPieModelMapperPrivate::initializePieFromModel() | |||||
586 | valueIndex = valueModelIndex(slicePos); |
|
584 | valueIndex = valueModelIndex(slicePos); | |
587 | labelIndex = labelModelIndex(slicePos); |
|
585 | labelIndex = labelModelIndex(slicePos); | |
588 | } |
|
586 | } | |
589 | m_series->setLabelsVisible(true); |
|
|||
590 |
|
|
587 | blockSeriesSignals(false); | |
591 | } |
|
588 | } | |
592 |
|
589 |
General Comments 0
You need to be logged in to leave comments.
Login now