| 287 | } |
| 288 | |
| 289 | const KDChart::DataValueAttributes MainWindow::attributes() const |
| 290 | { |
| 291 | if (scopeOneBarRB->isChecked()) { |
| 292 | // qDebug() << "attributes() returns settings for one single bar"; |
| 293 | return m_bars->dataValueAttributes(currentIndex()); |
| 294 | } |
| 295 | if (scopeDatasetRB->isChecked()) { |
| 296 | // qDebug() << "attributes() returns settings for a dataset"; |
| 297 | return m_bars->dataValueAttributes(scopeDatasetSB->value()); |
| 298 | } |
| 299 | // qDebug() << "attributes() returns common settings"; |
| 300 | return m_bars->dataValueAttributes(); |
| 301 | } |
| 302 | |
| 303 | void MainWindow::setAttributes(const KDChart::DataValueAttributes &da) |
| 304 | { |
nothing calls this directly
no test coverage detected