MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / setEditorData

Method setEditorData

src/plugins/binarytools/models/toolitemdelegate.cpp:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void ToolItemDelegate::setEditorData(QWidget *editor, const QModelIndex &index) const
52{
53 auto edit = qobject_cast<DLineEdit *>(editor);
54 edit->setText(index.data(Qt::DisplayRole).toString());
55}
56
57void ToolItemDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
58{

Callers

nothing calls this directly

Calls 3

setTextMethod · 0.45
toStringMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected