| 721 | |
| 722 | int columnCount(const QModelIndex &parent = QModelIndex()) const override { return COL_COUNT; } |
| 723 | QVariant headerData(int section, Qt::Orientation orientation, int role) const override |
| 724 | { |
| 725 | if(orientation == Qt::Horizontal && role == Qt::DisplayRole) |
| 726 | { |
| 727 | switch(section) |
| 728 | { |
| 729 | case COL_NAME: return tr("Name"); |
| 730 | case COL_EID: return lit("EID"); |
| 731 | case COL_ACTION: return lit("Action #"); |
| 732 | case COL_DURATION: return tr("Duration (%1)").arg(UnitSuffix(m_TimeUnit)); |
| 733 | case COL_ANNOTATION: |
| 734 | return m_AnnotationPath.empty() ? tr("Annotation") |
| 735 | : tr("Annotation (%1)").arg(m_AnnotationPath); |
| 736 | default: break; |
| 737 | } |
| 738 | } |
| 739 | |
| 740 | return QVariant(); |
| 741 | } |
| 742 | |
| 743 | QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override |
| 744 | { |
no test coverage detected