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

Method setModel

plugins/quickopen/expandingtree/expandingtree.cpp:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void ExpandingTree::setModel(QAbstractItemModel* model)
26{
27 Q_ASSERT(!model || qobject_cast<const ExpandingWidgetModel*>(
28 qobject_cast<const QAbstractProxyModel*>(model)->sourceModel())
29 );
30 QTreeView::setModel(model);
31}
32
33void ExpandingTree::drawRow(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const
34{

Callers 2

prepareShowMethod · 0.45
documentationWidgetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected