[LyX/master] Change function names to the ones easier to identify
Koji Yokota
yokota at lyx.org
Wed May 6 01:25:07 UTC 2026
commit 78d83d3dca3de096fefde47595c5998787c18d1a
Author: Koji Yokota <yokota at lyx.org>
Date: Wed May 6 10:13:05 2026 +0900
Change function names to the ones easier to identify
---
src/frontends/qt/GuiInputMethod.cpp | 4 ++--
src/frontends/qt/GuiInputMethod.h | 4 ++--
src/frontends/qt/GuiWorkArea.cpp | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/frontends/qt/GuiInputMethod.cpp b/src/frontends/qt/GuiInputMethod.cpp
index f5ac67c8d0..e28ca2fdda 100644
--- a/src/frontends/qt/GuiInputMethod.cpp
+++ b/src/frontends/qt/GuiInputMethod.cpp
@@ -178,7 +178,7 @@ void GuiInputMethod::setHint(Hint hint)
* * Preedit
* */
-void GuiInputMethod::processPreedit(QInputMethodEvent* ev)
+void GuiInputMethod::inputMethodEvent(QInputMethodEvent* ev)
{
// Linux can call this function even when IM is not used
if (ev->preeditString().isEmpty() && ev->commitString().isEmpty()
@@ -904,7 +904,7 @@ int GuiInputMethod::shiftFromCaretToSegmentHead()
/* *
* * Input Method Query
* */
-void GuiInputMethod::processQuery(Qt::InputMethodQuery query)
+void GuiInputMethod::inputMethodQuery(Qt::InputMethodQuery query)
{
// input method is not ready yet
if (d->buffer_view_->inputMethod() == nullptr) {
diff --git a/src/frontends/qt/GuiInputMethod.h b/src/frontends/qt/GuiInputMethod.h
index e257b1f855..87e5e3d8f9 100644
--- a/src/frontends/qt/GuiInputMethod.h
+++ b/src/frontends/qt/GuiInputMethod.h
@@ -126,9 +126,9 @@ Q_SIGNALS:
public Q_SLOTS:
/// Process incoming preedit string
- void processPreedit(QInputMethodEvent* ev);
+ void inputMethodEvent(QInputMethodEvent* ev);
/// Process incoming input method query
- void processQuery(Qt::InputMethodQuery query);
+ void inputMethodQuery(Qt::InputMethodQuery query);
/// Turn off IM in math mode and command phase and turn it on otherwise
void toggleInputMethodAcceptance() override;
/// Enable the input method
diff --git a/src/frontends/qt/GuiWorkArea.cpp b/src/frontends/qt/GuiWorkArea.cpp
index ca758ce3ff..4b36d1b73c 100644
--- a/src/frontends/qt/GuiWorkArea.cpp
+++ b/src/frontends/qt/GuiWorkArea.cpp
@@ -1389,7 +1389,7 @@ void GuiWorkArea::inputMethodEvent(QInputMethodEvent * ev)
{
// LYXERR0("preeditString: " << ev->preeditString()
// << " commitString: " << ev->commitString());
- d->im_->processPreedit(ev);
+ d->im_->inputMethodEvent(ev);
ev->accept();
}
@@ -1397,7 +1397,7 @@ void GuiWorkArea::inputMethodEvent(QInputMethodEvent * ev)
QVariant GuiWorkArea::inputMethodQuery(Qt::InputMethodQuery query) const
{
// ask a query
- d->im_->processQuery(query);
+ d->im_->inputMethodQuery(query);
// wait for the response and return
clock_t start = clock();
More information about the lyx-cvs
mailing list