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

Function main

plugins/debuggercommon/tests/debuggees/qpersistentmodelindex.cpp:11–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include <QStandardItemModel>
10
11int main()
12{
13 QPersistentModelIndex i;
14
15 QStandardItemModel model(2, 2);
16 i = model.index(1, 0);
17 i = model.index(1, 1);
18
19 auto* const item = new QStandardItem;
20 model.setItem(0, 1, item);
21 item->appendRow(new QStandardItem);
22 i = model.index(0, 0, item->index());
23
24 return 0;
25}

Callers

nothing calls this directly

Calls 3

setItemMethod · 0.80
appendRowMethod · 0.80
indexMethod · 0.45

Tested by

no test coverage detected