MCPcopy Create free account
hub / github.com/KDAB/GammaRay / fromQModelIndex

Function fromQModelIndex

common/protocol.cpp:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16namespace GammaRay {
17namespace Protocol {
18Protocol::ModelIndex fromQModelIndex(const QModelIndex &index)
19{
20 if (!index.isValid())
21 return ModelIndex();
22 ModelIndex result = fromQModelIndex(index.parent());
23 result.push_back(ModelIndexData(index.row(), index.column()));
24 return result;
25}
26
27QModelIndex toQModelIndex(const QAbstractItemModel *model, const Protocol::ModelIndex &index)
28{

Callers 12

setDataMethod · 0.85
requestRowColumnCountMethod · 0.85
requestDataAndFlagsMethod · 0.85
newRequestMethod · 0.85
dataChangedMethod · 0.85
rowsAboutToBeMovedMethod · 0.85
columnsMovedMethod · 0.85
layoutChangedMethod · 0.85
sendAddRemoveMessageMethod · 0.85
writeSelectionFunction · 0.85
slotCurrentChangedMethod · 0.85

Calls 5

ModelIndexDataClass · 0.85
rowMethod · 0.80
columnMethod · 0.80
isValidMethod · 0.45
parentMethod · 0.45

Tested by

no test coverage detected