| 492 | } |
| 493 | |
| 494 | QString ColumnPrivate::ValueLabels::labelAt(int index) const { |
| 495 | if (!initialized()) |
| 496 | return {}; |
| 497 | |
| 498 | switch (m_mode) { |
| 499 | case AbstractColumn::ColumnMode::Double: |
| 500 | return cast_vector<double>()->at(index).label; |
| 501 | case AbstractColumn::ColumnMode::Integer: |
| 502 | return cast_vector<int>()->at(index).label; |
| 503 | case AbstractColumn::ColumnMode::BigInt: |
| 504 | return cast_vector<qint64>()->at(index).label; |
| 505 | case AbstractColumn::ColumnMode::Text: |
| 506 | return cast_vector<QString>()->at(index).label; |
| 507 | case AbstractColumn::ColumnMode::DateTime: |
| 508 | case AbstractColumn::ColumnMode::Month: |
| 509 | case AbstractColumn::ColumnMode::Day: |
| 510 | return cast_vector<QDateTime>()->at(index).label; |
| 511 | } |
| 512 | Q_ASSERT(false); |
| 513 | return {}; |
| 514 | } |
| 515 | |
| 516 | double ColumnPrivate::ValueLabels::minimum() { |
| 517 | if (!m_statistics.available) |