[LyX/master] Make a call of GuiInputMethod::processPreedit() direct
Koji Yokota <[email protected]> Wed, 06 May 2026 01:25:07 +0000
| Newsgroups | gmane.editors.lyx.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 17def5661ce609b784ba0d2daa32a7414c40b69f Author: Koji Yokota <[email protected]> Date: Wed May 6 10:03:59 2026 +0900 Make a call of GuiInputMethod::processPreedit() direct Change it from signal/slot to a direct function call --- src/frontends/qt/GuiWorkArea.cpp | 5 ++--- src/frontends/qt/GuiWorkArea.h | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/frontends/qt/GuiWorkArea.cpp b/src/frontends/qt/GuiWorkArea.cpp index e3f3304b5e..ca758ce3ff 100644 --- a/src/frontends/qt/GuiWorkArea.cpp +++ b/src/frontends/qt/GuiWorkArea.cpp @@ -186,8 +186,6 @@ void GuiWorkArea::init() { // Setup the signals connect(&d->caret_timeout_, SIGNAL(timeout()), this, SLOT(toggleCaret())); - connect(this, &GuiWorkArea::preeditChanged, - d->im_, &GuiInputMethod::processPreedit); connect(d->im_, &GuiInputMethod::preeditProcessed, this, &GuiWorkArea::flagPreedit); connect(d->im_, &GuiInputMethod::queryProcessed, @@ -1391,7 +1389,8 @@ void GuiWorkArea::inputMethodEvent(QInputMethodEvent * ev) { // LYXERR0("preeditString: " << ev->preeditString() // << " commitString: " << ev->commitString()); - Q_EMIT preeditChanged(ev); + d->im_->processPreedit(ev); + ev->accept(); } diff --git a/src/frontends/qt/GuiWorkArea.h b/src/frontends/qt/GuiWorkArea.h index 84992997da..e007135246 100644 --- a/src/frontends/qt/GuiWorkArea.h +++ b/src/frontends/qt/GuiWorkArea.h @@ -116,8 +116,6 @@ Q_SIGNALS: /// send key event to CompressorProxy void compressKeySym(KeySymbol const & sym, KeyModifier mod, bool isAutoRepeat); /// - void preeditChanged(QInputMethodEvent * ev); - /// void keyCommandStateSet(); private Q_SLOTS: -- lyx-cvs mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-cvs