MCPcopy Create free account
hub / github.com/clementgallet/libTAS / setData

Method setData

src/program/ui/LuaConsoleModel.cpp:90–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90bool LuaConsoleModel::setData(const QModelIndex &index, const QVariant &value, int role)
91{
92 Lua::LuaFunctionList& lfl = Lua::Callbacks::getList();
93
94 if (index.column() == 0 && role == Qt::CheckStateRole) {
95 lfl.switchForFile(index.row(), value == Qt::Checked);
96 return true;
97 }
98
99 return QAbstractTableModel::setData(index, value, role);
100}
101
102void LuaConsoleModel::addFile(const QString& str)
103{

Callers

nothing calls this directly

Calls 2

columnMethod · 0.80
switchForFileMethod · 0.80

Tested by

no test coverage detected