MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / data

Method data

ElaWidgetToolsExample/ModelView/T_LogModel.cpp:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15{
16 return parent.isValid() ? 0 : _logList.count();
17}
18
19QVariant T_LogModel::data(const QModelIndex& index, int role) const
20{
21 if (index.isValid() && index.model() == this && index.row() >= 0 && index.row() < _logList.size() && role == Qt::DisplayRole)
22 {
23 return _logList[index.row()];
24 }
25 return QVariant();
26}
27

Callers 3

paintMethod · 0.45
ElaBreadcrumbBarMethod · 0.45
ElaTabBarMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected