MCPcopy Create free account
hub / github.com/KDE/labplot / modelIndexOfAspect

Method modelIndexOfAspect

src/backend/core/AspectTreeModel.cpp:454–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452}
453
454QModelIndex AspectTreeModel::modelIndexOfAspect(const AbstractAspect* aspect, int column) const {
455 if (!aspect)
456 return QModelIndex();
457 AbstractAspect* parent = aspect->parentAspect();
458 return createIndex(parent ? parent->indexOfChild<AbstractAspect>(aspect) : 0, column, const_cast<AbstractAspect*>(aspect));
459}
460
461/*!
462 returns the model index of an aspect defined via its path.

Callers 15

importFileDialogMethod · 0.80
importSqlDialogMethod · 0.80
setCurrentAspectMethod · 0.80
eventFilterMethod · 0.80
aspectAddedMethod · 0.80
navigateToMethod · 0.80
saveMethod · 0.80
loadMethod · 0.80
initGeneralTabMethod · 0.80
addVariableMethod · 0.80
setCurrentFolderMethod · 0.80

Calls 3

parentAspectMethod · 0.80
QModelIndexClass · 0.50
pathMethod · 0.45

Tested by

no test coverage detected