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

Method data

src/subprojects/AutoEqIntegration/AeqMeasurementModel.cpp:21–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21QVariant AeqMeasurementModel::data(const QModelIndex &index, int role) const
22{
23 if (!index.isValid())
24 return QVariant();
25
26 if(role == Qt::ItemDataRole::UserRole)
27 return QVariant::fromValue(items.at(index.row()));
28 else if (role == Qt::ItemDataRole::DisplayRole)
29 return items.at(index.row()).name;
30 else
31 return QVariant();
32}

Callers 4

paintMethod · 0.45
onSelectionChangedMethod · 0.45
selectionMethod · 0.45
moveLegendMethod · 0.45

Calls 2

QVariantClass · 0.50
atMethod · 0.45

Tested by

no test coverage detected