| 926 | } |
| 927 | |
| 928 | int InputEditorModel::pasteInsertInputs(int row) |
| 929 | { |
| 930 | /* Rewind to past frame if needed */ |
| 931 | if (row < static_cast<int>(context->framecount)) { |
| 932 | bool ret = rewind(row); |
| 933 | if (!ret) { |
| 934 | startHighlight(row, row, 0, columnCount()-1, false); |
| 935 | return 0; |
| 936 | } |
| 937 | } |
| 938 | |
| 939 | QClipboard *clipboard = QGuiApplication::clipboard(); |
| 940 | std::istringstream inputString(clipboard->text().toStdString()); |
| 941 | |
| 942 | std::vector<AllInputs> paste_ais; |
| 943 | InputSerialization::readInputs(inputString, paste_ais); |
| 944 | |
| 945 | movie->inputs->insertInputsBefore(paste_ais, row); |
| 946 | |
| 947 | return paste_ais.size(); |
| 948 | } |
| 949 | |
| 950 | |
| 951 | void InputEditorModel::addUniqueInput(const SingleInput &si) |
nothing calls this directly
no test coverage detected