| 58 | } |
| 59 | |
| 60 | void IPItemDelegate::setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const |
| 61 | { |
| 62 | QLineEdit* line = static_cast<QLineEdit*>(editor); |
| 63 | QString value = line->text(); |
| 64 | model->setData(index, value); |
| 65 | } |
| 66 | |
| 67 | void IPItemDelegate::updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const |
| 68 | { |