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

Function writeSelection

common/networkselectionmodel.cpp:39–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39static void writeSelection(Message *msg, const QItemSelection &selection)
40{
41 *msg << qint32(selection.size());
42 for (const QItemSelectionRange &range : selection)
43 *msg << Protocol::fromQModelIndex(range.topLeft()) << Protocol::fromQModelIndex(range.bottomRight());
44}
45
46// find a model having a defaultSelectedItem method
47static QAbstractItemModel *findSourceModel(QAbstractItemModel *model)

Callers 2

sendSelectionMethod · 0.85
selectMethod · 0.85

Calls 2

fromQModelIndexFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected