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

Method mapFromSource

plugins/quickopen/expandingtree/expandingwidgetmodel.cpp:100–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100QModelIndex ExpandingWidgetModel::mapFromSource(const QModelIndex& index) const
101{
102 const auto proxyModel = qobject_cast<QAbstractProxyModel*>(treeView()->model());
103 Q_ASSERT(proxyModel);
104 Q_ASSERT(!index.isValid() || index.model() == this);
105 return proxyModel->mapFromSource(index);
106}
107
108QModelIndex ExpandingWidgetModel::mapToSource(const QModelIndex& index) const
109{

Callers 1

applyFilterMethod · 0.45

Calls 2

modelMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected