| 83 | } |
| 84 | |
| 85 | CustomInstruction AddCustomInstructionDialog::getInstruction() const |
| 86 | { |
| 87 | CustomInstruction instruction = m_instruction; |
| 88 | instruction.name = m_nameEdit->text().trimmed(); |
| 89 | instruction.body = m_bodyEdit->toPlainText().trimmed(); |
| 90 | instruction.isDefault = m_defaultCheckBox->isChecked(); |
| 91 | return instruction; |
| 92 | } |
| 93 | |
| 94 | } // namespace QodeAssist |
| 95 |
no test coverage detected