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

Method findFirstById

src/data/model/VdcDatabaseModel.cpp:67–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67QModelIndex VdcDatabaseModel::findFirstById(const QString& id) const
68{
69 auto matches = this->match(this->index(0, 4), Qt::DisplayRole, id, 1);
70
71 foreach(const QModelIndex &index, matches)
72 {
73 if (id == this->data(this->index(index.row(), 4), Qt::DisplayRole))
74 {
75 return index;
76 }
77 }
78
79 return QModelIndex();
80}

Callers 1

determineVdcSelectionMethod · 0.80

Calls 1

indexMethod · 0.80

Tested by

no test coverage detected