MCPcopy Create free account
hub / github.com/Martchus/syncthingtray / index

Method index

syncthingmodel/syncthingrecentchangesmodel.cpp:47–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47QModelIndex SyncthingRecentChangesModel::index(int row, int column, const QModelIndex &parent) const
48{
49 if (static_cast<size_t>(row) >= m_changes.size() || parent.isValid()) {
50 return QModelIndex();
51 }
52 return createIndex(row, column, static_cast<quintptr>(-1));
53}
54
55QModelIndex SyncthingRecentChangesModel::parent(const QModelIndex &child) const
56{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected