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

Method flagChanged

plugins/debuggercommon/registers/modelsmanager.cpp:141–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void ModelsManager::flagChanged(const QModelIndex& idx)
142{
143 auto* view = static_cast<QAbstractItemView*>(sender());
144 int row = idx.row();
145
146 QStandardItemModel* model = m_models->modelForView(view);
147
148 QStandardItem* item = model->item(row, 0);
149
150 Register r;
151 r.name = item->text();
152 r.value = model->data(idx).toString();
153 emit registerChanged(r);
154}
155
156QStandardItemModel* Models::addModel(const Model& m)
157{

Callers

nothing calls this directly

Calls 6

modelForViewMethod · 0.80
rowMethod · 0.45
itemMethod · 0.45
textMethod · 0.45
toStringMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected