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

Method changedValues

plugins/cmake/settings/cmakecachemodel.cpp:142–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142QVariantMap CMakeCacheModel::changedValues() const
143{
144 QVariantMap ret;
145 for(int i=0; i<rowCount(); i++)
146 {
147 if (!m_modifiedRows.contains(i))
148 continue;
149
150 QStandardItem* name = item(i, 0);
151 QStandardItem* type = item(i, 1);
152 QStandardItem* valu = item(i, 2);
153// QStandardItem* comment = item(i, 3);
154 ret.insert(name->text()+QLatin1Char(':')+type->text(), valu->text());
155
156 }
157 return ret;
158}
159
160QString CMakeCacheModel::value(const QString & varName) const
161{

Callers 1

configureMethod · 0.80

Calls 3

containsMethod · 0.45
insertMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected