| 379 | } |
| 380 | |
| 381 | const KDChart::DataValueAttributes DataValueSettings::Private::attributes() const |
| 382 | { |
| 383 | Q_ASSERT(m_chart); |
| 384 | Q_ASSERT(m_chart->coordinatePlane()); |
| 385 | AbstractDiagram *diag = m_chart->coordinatePlane()->diagram(); |
| 386 | DataValueAttributes attr = diag->dataValueAttributes(); |
| 387 | if (ui->scopeOneBarRB->isChecked()) { |
| 388 | attr = diag->dataValueAttributes(currentIndex()); |
| 389 | } else if (ui->scopeDatasetRB->isChecked()) { |
| 390 | attr = diag->dataValueAttributes(ui->scopeDatasetSB->value()); |
| 391 | } |
| 392 | attr.setShowRepetitiveDataLabels(true); |
| 393 | return attr; |
| 394 | } |
| 395 | |
| 396 | void DataValueSettings::Private::setAttributes(const KDChart::DataValueAttributes &da) |
| 397 | { |
nothing calls this directly
no test coverage detected