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

Method handleStop

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

Source from the content-addressed store, hash-verified

481}
482
483void InlineChatWidgetPrivate::handleStop()
484{
485 setState(Original);
486 edit->setPlainText(questionLabel->text());
487 edit->moveCursor(QTextCursor::End);
488 questionLabel->clear();
489 foreach (auto watcher, futureWatcherList) {
490 if (!watcher->isFinished())
491 watcher->cancel();
492 }
493 inlineChatLLM->cancel();
494}
495
496void InlineChatWidgetPrivate::handleCreatePromptFinished()
497{

Callers 1

eventFilterMethod · 0.80

Calls 3

textMethod · 0.45
clearMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected