MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / setModelData

Method setModelData

pcsx2-qt/Settings/DEV9UiCommon.cpp:60–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void 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
67void IPItemDelegate::updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const
68{

Callers

nothing calls this directly

Calls 1

setDataMethod · 0.45

Tested by

no test coverage detected