| 23 | } |
| 24 | |
| 25 | void 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 | |
| 33 | void ExpandingTree::drawRow(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const |
| 34 | { |
no outgoing calls
no test coverage detected