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

Method itemData

plugins/translatorinspector/translatorwrapper.cpp:87–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87QMap<int, QVariant> TranslationsModel::itemData(const QModelIndex &index) const
88{
89 auto data = QAbstractTableModel::itemData(index);
90 if (hasIndex(index.row(), index.column(), index.parent())) {
91 if (index.column() == 3)
92 data[IsOverriddenRole] = m_nodes.at(index.row()).isOverridden;
93 }
94 return data;
95}
96
97void TranslationsModel::resetTranslations(const QItemSelection &selection)
98{

Callers

nothing calls this directly

Calls 3

rowMethod · 0.80
columnMethod · 0.80
parentMethod · 0.45

Tested by

no test coverage detected