MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / index

Method index

src/plugins/codeeditor/gui/completion/codecompletionmodel.cpp:148–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148QModelIndex CodeCompletionModel::index(int row, int column, const QModelIndex &parent) const
149{
150 if (row < 0 || row >= rowCount(parent) || column < 0 || column >= 2 || parent.isValid())
151 return QModelIndex();
152
153 return createIndex(row, column, &d->completionDatas[row]);
154}
155
156QModelIndex CodeCompletionModel::parent(const QModelIndex &child) const
157{

Callers 15

setRootPathMethod · 0.45
createConsoleMethod · 0.45
selectSessionMethod · 0.45
selectDefaultItemMethod · 0.45
selectFirstRowMethod · 0.45
previousMethod · 0.45
nextMethod · 0.45
setRootPathMethod · 0.45
selectMethod · 0.45
nextCompletionMethod · 0.45
previousCompletionMethod · 0.45
filterAcceptsRowMethod · 0.45

Calls 2

QModelIndexClass · 0.50
isValidMethod · 0.45

Tested by

no test coverage detected