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

Method updateButtonIcon

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

Source from the content-addressed store, hash-verified

618}
619
620void InlineChatWidgetPrivate::updateButtonIcon()
621{
622 submitBtn->setIcon(q->hasFocus() ? QIcon::fromTheme("uc_chat_submit") : QIcon());
623 questionBtn->setIcon(q->hasFocus() ? QIcon::fromTheme("uc_chat_quickquestion") : QIcon());
624 stopBtn->setIcon(q->hasFocus() ? QIcon::fromTheme("uc_chat_reject") : QIcon());
625 acceptBtn->setIcon(q->hasFocus() ? QIcon::fromTheme("uc_chat_accept") : QIcon());
626 rejectBtn->setIcon(q->hasFocus() ? QIcon::fromTheme("uc_chat_reject") : QIcon());
627}
628
629QString InlineChatWidgetPrivate::createPrompt(const QString &question, bool useChunk)
630{

Callers 1

eventFilterMethod · 0.80

Calls 2

hasFocusMethod · 0.80
setIconMethod · 0.45

Tested by

no test coverage detected