| 49 | } |
| 50 | |
| 51 | void ToolItemDelegate::setEditorData(QWidget *editor, const QModelIndex &index) const |
| 52 | { |
| 53 | auto edit = qobject_cast<DLineEdit *>(editor); |
| 54 | edit->setText(index.data(Qt::DisplayRole).toString()); |
| 55 | } |
| 56 | |
| 57 | void ToolItemDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
| 58 | { |