| 1113 | |
| 1114 | |
| 1115 | void InputEditorModel::lockUniqueInput(int column, bool locked) |
| 1116 | { |
| 1117 | if (column < COLUMN_SPECIAL_SIZE) |
| 1118 | return; |
| 1119 | |
| 1120 | if (column == columnCount() - 1) |
| 1121 | return; |
| 1122 | |
| 1123 | SingleInput si = movie->editor->input_set[column-COLUMN_SPECIAL_SIZE]; |
| 1124 | |
| 1125 | if (locked) { |
| 1126 | movie->editor->locked_inputs.insert(si); |
| 1127 | } |
| 1128 | else { |
| 1129 | movie->editor->locked_inputs.erase(si); |
| 1130 | } |
| 1131 | |
| 1132 | /* Update the input column */ |
| 1133 | emit dataChanged(index(0,column), index(rowCount()-1,column)); |
| 1134 | } |
| 1135 | |
| 1136 | |
| 1137 | void InputEditorModel::clearInputs(int min_row, int max_row) |