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

Method setEditorData

src/SpinBoxDelegate.cpp:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void SpinBoxDelegate::setEditorData(QWidget *editor, const QModelIndex &index) const
40{
41 int value = index.model()->data(index, Qt::EditRole).toInt();
42
43 QSpinBox *spinBox = static_cast<QSpinBox*>(editor);
44 spinBox->setValue(value);
45}
46
47void SpinBoxDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
48{

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected