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

Method sourceDataChanged

plugins/translatorinspector/translatorsmodel.cpp:89–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void TranslatorsModel::sourceDataChanged()
90{
91 const int row = m_translators.indexOf(qobject_cast<TranslationsModel *>(sender())->translator());
92 if (row == -1)
93 return;
94 const QModelIndex index = this->index(row, 2, QModelIndex());
95 if (!index.isValid())
96 return;
97 // needed to make sure these things also update
98 emit dataChanged(index, index,
99 QVector<int>() << Qt::DisplayRole << Qt::EditRole);
100}
101
102void TranslatorsModel::registerTranslator(TranslatorWrapper *translator)
103{

Callers

nothing calls this directly

Calls 4

QModelIndexClass · 0.50
translatorMethod · 0.45
indexMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected