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

Method addFile

src/program/ui/LuaConsoleModel.cpp:102–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void LuaConsoleModel::addFile(const QString& str)
103{
104 Lua::LuaFunctionList& lfl = Lua::Callbacks::getList();
105
106 /* Check if file is already in the list before calling beginInsertRows */
107 if (lfl.fileSet.find(str.toStdString()) != lfl.fileSet.end())
108 return;
109
110 beginInsertRows(QModelIndex(), lfl.fileSet.size(), lfl.fileSet.size());
111 lfl.addFile(str.toStdString());
112 endInsertRows();
113}
114
115void LuaConsoleModel::removeFile(int row)
116{

Callers 2

mainFunction · 0.45
addScriptMethod · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected