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

Method data

src/data/model/RouteListModel.cpp:19–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19QVariant RouteListModel::data(const QModelIndex &index, int role) const
20{
21 if (!index.isValid())
22 return QVariant();
23
24 auto route = routes[index.row()];
25
26 switch (role) {
27 case Qt::ItemDataRole::DisplayRole:
28 return QString::fromStdString(route.description);
29 case Qt::ItemDataRole::UserRole:
30 return QVariant::fromValue(route);
31 default:
32 return QVariant();
33 }
34}
35
36bool RouteListModel::loadRemaining(IOutputDevice device, PresetRuleTableModel* ruleModel)
37{

Callers

nothing calls this directly

Calls 1

QVariantClass · 0.50

Tested by

no test coverage detected