MCPcopy Create free account
hub / github.com/baldurk/renderdoc / headerData

Method headerData

qrenderdoc/Windows/EventBrowser.cpp:723–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

on_colSelect_clickedMethod · 0.45
persistDataMethod · 0.45

Calls 5

UnitSuffixFunction · 0.85
trFunction · 0.50
QVariantClass · 0.50
argMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected