| 262 | } |
| 263 | |
| 264 | void 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 | |
| 275 | bool TabWidgetPrivate::processKeyPressEvent(QKeyEvent *event) |
| 276 | { |