MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / headerData

Method headerData

src/data/model/QJsonTableModel.cpp:28–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28QVariant QJsonTableModel::headerData(int section,
29 Qt::Orientation orientation,
30 int role) const
31{
32 if ( role != Qt::DisplayRole )
33 {
34 return QVariant();
35 }
36
37 switch ( orientation )
38 {
39 case Qt::Horizontal:
40 return m_header[section]["title"];
41 case Qt::Vertical:
42 // return section + 1;
43 return QVariant();
44 default:
45 return QVariant();
46 }
47
48}
49
50int QJsonTableModel::rowCount(const QModelIndex &) const
51{

Callers

nothing calls this directly

Calls 1

QVariantClass · 0.50

Tested by

no test coverage detected