| 42 | } |
| 43 | |
| 44 | void setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const override |
| 45 | { |
| 46 | const QString previousName = index.data().toString(); |
| 47 | QStyledItemDelegate::setModelData(editor, model, index); |
| 48 | const auto* proxyModel = static_cast<QAbstractProxyModel*>(model); |
| 49 | m_scratchpad->renameScratch(proxyModel->mapToSource(index), previousName); |
| 50 | } |
| 51 | |
| 52 | private: |
| 53 | Scratchpad* m_scratchpad; |
nothing calls this directly
no test coverage detected