MCPcopy Create free account
hub / github.com/MITK/MITK / headerData

Method headerData

Modules/QtWidgets/src/QmitkDataStorageSimpleTreeModel.cpp:266–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266QVariant QmitkDataStorageSimpleTreeModel::headerData(int /*section*/, Qt::Orientation orientation, int role) const
267{
268 if (orientation == Qt::Horizontal && role == Qt::DisplayRole && m_Root)
269 return QString::fromStdString(m_Root->GetDataNode()->GetName());
270
271 return QVariant();
272}
273
274Qt::ItemFlags QmitkDataStorageSimpleTreeModel::flags(const QModelIndex &index) const
275{

Callers

nothing calls this directly

Calls 2

GetNameMethod · 0.45
GetDataNodeMethod · 0.45

Tested by

no test coverage detected