MCPcopy Create free account
hub / github.com/MultiMC/Launcher / setData

Method setData

launcher/ui/dialogs/ExportInstanceDialog.cpp:133–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 }
132
133 virtual bool setData(const QModelIndex &index, const QVariant &value,
134 int role = Qt::EditRole)
135 {
136 if (index.column() == 0 && role == Qt::CheckStateRole)
137 {
138 Qt::CheckState state = static_cast<Qt::CheckState>(value.toInt());
139 return setFilterState(index, state);
140 }
141
142 QModelIndex sourceIndex = mapToSource(index);
143 return QSortFilterProxyModel::sourceModel()->setData(sourceIndex, value, role);
144 }
145
146 QString relPath(const QString &path) const
147 {

Callers 5

setTextMethod · 0.45
setModelDataMethod · 0.45
ProfileSelectDialogMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected