MCPcopy Create free account
hub / github.com/alpha-liu-01/SpeedyNote / inputMethodEvent

Method inputMethodEvent

source/MainWindow.cpp:8354–8365  ·  view source on GitHub ↗

IME support for multi-language input

Source from the content-addressed store, hash-verified

8352
8353// IME support for multi-language input
8354void MainWindow::inputMethodEvent(QInputMethodEvent *event) {
8355 // Forward IME events to the focused widget
8356 QWidget *focusWidget = QApplication::focusWidget();
8357 if (focusWidget && focusWidget != this) {
8358 QApplication::sendEvent(focusWidget, event);
8359 event->accept();
8360 return;
8361 }
8362
8363 // Default handling
8364 QMainWindow::inputMethodEvent(event);
8365}
8366
8367QVariant MainWindow::inputMethodQuery(Qt::InputMethodQuery query) const {
8368 // Forward IME queries to the focused widget

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected