MCPcopy Create free account
hub / github.com/KDE/labplot / labelAt

Method labelAt

src/backend/core/column/ColumnPrivate.cpp:494–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494QString 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
516double ColumnPrivate::ValueLabels::minimum() {
517 if (!m_statistics.available)

Callers 1

valueLabelAtMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected