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

Method setAutoholdInput

src/program/ui/InputEditorModel.cpp:1383–1395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1381}
1382
1383void InputEditorModel::setAutoholdInput(int column, bool checked)
1384{
1385 if (column < COLUMN_SPECIAL_SIZE)
1386 return;
1387
1388 if (column == columnCount() - 1)
1389 return;
1390
1391 movie->editor->setAutohold(column-COLUMN_SPECIAL_SIZE, checked);
1392
1393 emit dataChanged(index(0,column), index(rowCount(),column), QVector<int>(1, Qt::BackgroundRole));
1394 emit headerDataChanged(Qt::Horizontal, column, column);
1395}
1396
1397bool InputEditorModel::isAutoholdInput(int column) const
1398{

Callers 2

autoholdInputMethod · 0.80
clickSectionMethod · 0.80

Calls 1

setAutoholdMethod · 0.80

Tested by

no test coverage detected