MCPcopy Create free account
hub / github.com/YACReader/yacreader / setModelData

Method setModelData

shortcuts_management/edit_shortcut_item_delegate.cpp:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void EditShortcutItemDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
29{
30 KeySequenceLineEdit *lineEdit = static_cast<KeySequenceLineEdit *>(editor);
31
32 model->setData(index, lineEdit->text(), Qt::EditRole);
33}
34
35void EditShortcutItemDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &mi) const
36{

Callers

nothing calls this directly

Calls 2

textMethod · 0.80
setDataMethod · 0.45

Tested by

no test coverage detected