| 37 | } |
| 38 | |
| 39 | static 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 |
| 47 | static QAbstractItemModel *findSourceModel(QAbstractItemModel *model) |
no test coverage detected