MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / reset

Method reset

src/plugins/chat/widgets/inlinechatwidget.cpp:772–783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770}
771
772void InlineChatWidget::reset()
773{
774 if (d->chatInfo.fileName.isEmpty())
775 return;
776
777 d->edit->clear();
778 d->handleReject();
779 if (d->selectionMarker != -1)
780 d->editSrv->clearAllBackgroundColor(d->chatInfo.fileName, d->selectionMarker);
781 d->prevState = InlineChatWidgetPrivate::Original;
782 d->chatInfo.clear();
783}
784
785void InlineChatWidget::keyPressEvent(QKeyEvent *e)
786{

Callers 1

Calls 4

handleRejectMethod · 0.80
isEmptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected