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

Method data

src/data/model/PresetListModel.cpp:23–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23QVariant PresetListModel::data(const QModelIndex &index, int role) const
24{
25 if (!index.isValid())
26 return QVariant();
27
28 switch(role)
29 {
30 case Qt::DisplayRole:
31 return presets.at(index.row());
32 case Qt::UserRole:
33 return presets.at(index.row());
34 default:
35 return QVariant();
36 }
37}
38
39void PresetListModel::rescan()
40{

Callers

nothing calls this directly

Calls 2

QVariantClass · 0.50
atMethod · 0.45

Tested by

no test coverage detected