MCPcopy Create free account
hub / github.com/KDE/kdevelop / itemChanged

Method itemChanged

plugins/debuggercommon/registers/modelsmanager.cpp:215–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void ModelsManager::itemChanged(QStandardItem* i)
216{
217 auto* model = static_cast<QStandardItemModel*>(sender());
218
219 int row = i->row();
220
221 Register r;
222 r.name = model->item(row, 0)->text();
223 for (int i = 1; i < model->columnCount(); i++) {
224 r.value += model->item(row, i)->text() + QLatin1Char(' ');
225 }
226 r.value = r.value.trimmed();
227 emit registerChanged(r);
228}
229
230QString Models::nameForView(QAbstractItemView* view) const
231{

Callers

nothing calls this directly

Calls 4

rowMethod · 0.45
textMethod · 0.45
itemMethod · 0.45
columnCountMethod · 0.45

Tested by

no test coverage detected