| 170 | } |
| 171 | |
| 172 | RcxEditor* RcxController::addSplitEditor(QWidget* parent) { |
| 173 | auto* editor = new RcxEditor(parent); |
| 174 | m_editors.append(editor); |
| 175 | connectEditor(editor); |
| 176 | |
| 177 | if (!m_lastResult.text.isEmpty()) { |
| 178 | editor->applyDocument(m_lastResult); |
| 179 | } |
| 180 | updateCommandRow(); |
| 181 | return editor; |
| 182 | } |
| 183 | |
| 184 | void RcxController::removeSplitEditor(RcxEditor* editor) { |
| 185 | m_editors.removeOne(editor); |