| 667 | } |
| 668 | |
| 669 | void InputEditorModel::startPaint(int col, int minRow, int maxRow, int value, int autofire) |
| 670 | { |
| 671 | if (col < COLUMN_SPECIAL_SIZE) |
| 672 | return; |
| 673 | |
| 674 | if (col == columnCount() - 1) |
| 675 | return; |
| 676 | |
| 677 | paintInput = movie->editor->input_set[col-COLUMN_SPECIAL_SIZE]; |
| 678 | |
| 679 | /* Don't edit locked input */ |
| 680 | if (movie->editor->locked_inputs.find(paintInput) != movie->editor->locked_inputs.end()) |
| 681 | return; |
| 682 | |
| 683 | paintOngoing = true; |
| 684 | paintMinRow = minRow; |
| 685 | paintMaxRow = maxRow; |
| 686 | paintCol = col; |
| 687 | paintValue = value; |
| 688 | if (autofire >= 0) |
| 689 | paintAutofire = autofire; |
| 690 | emit dataChanged(index(minRow, col), index(maxRow, col)); |
| 691 | } |
| 692 | |
| 693 | void InputEditorModel::endPaint() |
| 694 | { |
no test coverage detected