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

Method data

plugins/cmake/cmakecommandscontents.cpp:157–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157QVariant CMakeCommandsContents::data(const QModelIndex& index, int role) const
158{
159 if (index.isValid()) {
160 if(role==Qt::DisplayRole) {
161 int internal(index.internalId());
162 if(internal>=0)
163 return m_namesForType[internal].count() > index.row() ? QVariant(m_namesForType[internal].at(index.row())) : QVariant();
164 else
165 return modules[index.row()];
166 }
167 }
168 return QVariant();
169}
170
171int CMakeCommandsContents::columnCount(const QModelIndex& /*parent*/) const
172{

Callers 15

tryCMakeServerMethod · 0.45
integrateDataMethod · 0.45
showItemAtMethod · 0.45
documentationForIndexMethod · 0.45
CMakeServerImportJobMethod · 0.45
startMethod · 0.45
doStartMethod · 0.45
newUseMethod · 0.45
runMethod · 0.45
createEditorMethod · 0.45
setEditorDataMethod · 0.45
setModelDataMethod · 0.45

Calls 5

QVariantClass · 0.50
isValidMethod · 0.45
countMethod · 0.45
rowMethod · 0.45
atMethod · 0.45

Tested by 5

testCTestSuiteMethod · 0.36
testQtTestCasesMethod · 0.36
paintMethod · 0.36
loadDeclarationsMethod · 0.36
rowsInsertedMethod · 0.36