MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / setModelData

Method setModelData

src/SpinBoxDelegate.cpp:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void SpinBoxDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
48{
49 QSpinBox *spinBox = static_cast<QSpinBox*>(editor);
50 spinBox->interpretText();
51 int value = spinBox->value();
52
53 model->setData(index, value, Qt::EditRole);
54}
55
56void SpinBoxDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
57{

Callers

nothing calls this directly

Calls 1

setDataMethod · 0.45

Tested by

no test coverage detected