| 451 | } |
| 452 | |
| 453 | void InputEditWidget::onReferenceBtnClicked() |
| 454 | { |
| 455 | auto cursor = d->edit->textCursor(); |
| 456 | cursor.movePosition(QTextCursor::Left, QTextCursor::KeepAnchor); |
| 457 | auto charBeforeCursor = cursor.selectedText(); |
| 458 | if (charBeforeCursor != "@") |
| 459 | cursor.insertText("@"); |
| 460 | else if (!d->referencePopup->isVisible()) |
| 461 | d->referencePopup->show(); |
| 462 | d->edit->setFocus(); |
| 463 | } |
| 464 | |
| 465 | void InputEditWidget::onCodeBaseBtnClicked() |
| 466 | { |
nothing calls this directly
no test coverage detected