MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / focusedInstance

Method focusedInstance

ChatView/ChatWidget.cpp:99–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99ChatWidget *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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected