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

Method selectedVariable

kdevplatform/debugger/variable/variablewidget.cpp:268–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268Variable* VariableTree::selectedVariable() const
269{
270 if (selectionModel()->selectedRows().isEmpty()) return nullptr;
271 auto item = selectionModel()->currentIndex().data(TreeModel::ItemRole).value<TreeItem*>();
272 if (!item) return nullptr;
273 return qobject_cast<Variable*>(item);
274}
275
276void VariableTree::contextMenuEvent(QContextMenuEvent* event)
277{

Callers 5

contextMenuEventMethod · 0.95
changeVariableFormatMethod · 0.95
watchDeleteMethod · 0.95
copyVariableValueMethod · 0.95
stopOnChangeMethod · 0.95

Calls 3

isEmptyMethod · 0.45
dataMethod · 0.45
currentIndexMethod · 0.45

Tested by

no test coverage detected