| 88 | } |
| 89 | |
| 90 | bool 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 | |
| 102 | void LuaConsoleModel::addFile(const QString& str) |
| 103 | { |
nothing calls this directly
no test coverage detected