| 949 | |
| 950 | |
| 951 | void InputEditorModel::addUniqueInput(const SingleInput &si) |
| 952 | { |
| 953 | /* Check if input is already present */ |
| 954 | for (SingleInput ti : movie->editor->input_set) { |
| 955 | if (si == ti) { |
| 956 | return; |
| 957 | } |
| 958 | } |
| 959 | |
| 960 | beginInsertColumns(QModelIndex(), columnCount(), columnCount()); |
| 961 | movie->editor->input_set.push_back(si); |
| 962 | endInsertColumns(); |
| 963 | emit inputSetChanged(); |
| 964 | } |
| 965 | |
| 966 | void InputEditorModel::addUniqueInputs(const AllInputs &ai) |
| 967 | { |