| 97 | } |
| 98 | |
| 99 | ChatWidget *ChatWidget::focusedInstance() |
| 100 | { |
| 101 | for (QWidget *widget = QApplication::focusWidget(); widget; |
| 102 | widget = widget->parentWidget()) { |
| 103 | if (auto chatWidget = qobject_cast<ChatWidget *>(widget)) |
| 104 | return chatWidget; |
| 105 | } |
| 106 | return nullptr; |
| 107 | } |
| 108 | } // namespace QodeAssist::Chat |
nothing calls this directly
no outgoing calls
no test coverage detected