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

Method mapModelIndex2QObject

plugins/statemachineviewer/transitionmodel.cpp:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62QObject *TransitionModelPrivate::mapModelIndex2QObject(const QModelIndex &index) const
63{
64 if (index.isValid()) {
65 QObjectList c = children(reinterpret_cast<QObject *>(index.internalPointer()));
66 return c[index.row()];
67 }
68 return m_state;
69}
70
71TransitionModel::TransitionModel(QObject *parent)
72 : ObjectModelBase<QAbstractItemModel>(parent)

Callers 2

dataMethod · 0.80
rowCountMethod · 0.80

Calls 2

rowMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected