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

Method changeFocusProxy

src/plugins/codeeditor/gui/tabwidget.cpp:264–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264void TabWidgetPrivate::changeFocusProxy()
265{
266 auto editor = currentTextEditor();
267 q->setFocusProxy(editor);
268 tabBar->setFocusProxy(editor);
269
270 // need to set the proxy first,
271 // otherwise `setFocus` will not work
272 q->setFocus();
273}
274
275bool TabWidgetPrivate::processKeyPressEvent(QKeyEvent *event)
276{

Callers 1

openFileMethod · 0.80

Calls 1

setFocusMethod · 0.80

Tested by

no test coverage detected