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

Method itemData

core/objectmodelbase.h:102–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 }
101
102 QMap<int, QVariant> itemData(const QModelIndex &index) const override
103 {
104 QMap<int, QVariant> map = Base::itemData(index);
105 map.insert(ObjectModel::ObjectIdRole, this->data(index, ObjectModel::ObjectIdRole));
106 map.insert(ObjectModel::DecorationIdRole, this->data(index, ObjectModel::DecorationIdRole));
107 map.insert(ObjectModel::IsFavoriteRole, this->data(index, ObjectModel::IsFavoriteRole));
108 return map;
109 }
110
111 /*!
112 * Returns the header data for the Object, given a section (column),

Callers

nothing calls this directly

Calls 2

insertMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected