| 143 | } |
| 144 | |
| 145 | void CodeEditComponent::onInsertBtnClicked() |
| 146 | { |
| 147 | if (!codeEdit) |
| 148 | return; |
| 149 | |
| 150 | if (codeEdit->toPlainText().isEmpty()) |
| 151 | return; |
| 152 | |
| 153 | Copilot::instance()->insterText(codeEdit->toPlainText()); |
| 154 | } |
| 155 | |
| 156 | void CodeEditComponent::onCopyBtnClicked() |
| 157 | { |
nothing calls this directly
no test coverage detected