| 391 | } |
| 392 | |
| 393 | int ExpandingWidgetModel::basicRowHeight(const QModelIndex& idx_) const |
| 394 | { |
| 395 | Q_ASSERT(idx_.model() == treeView()->model()); |
| 396 | |
| 397 | QModelIndex idx(firstColumn(idx_)); |
| 398 | |
| 399 | auto* delegate = qobject_cast<ExpandingDelegate*>(treeView()->itemDelegateForIndex(idx)); |
| 400 | if (!delegate || !idx.isValid()) { |
| 401 | qCDebug(PLUGIN_QUICKOPEN) << "ExpandingWidgetModel::basicRowHeight: Could not get delegate"; |
| 402 | return 15; |
| 403 | } |
| 404 | return delegate->basicSizeHint(idx).height(); |
| 405 | } |
| 406 | |
| 407 | void ExpandingWidgetModel::placeExpandingWidget(const QModelIndex& idx_) |
| 408 | { |
nothing calls this directly
no test coverage detected