[LyX/master] rename function
Juergen Spitzmueller
spitz at lyx.org
Mon Sep 22 06:05:40 UTC 2025
commit 10dd15c7635fe3d267c5c61de124103eec7429fd
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Mon Sep 22 08:04:50 2025 +0200
rename function
see discussion at #13226
---
src/frontends/qt/GuiInputMethod.cpp | 5 +++--
src/frontends/qt/GuiInputMethod.h | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/frontends/qt/GuiInputMethod.cpp b/src/frontends/qt/GuiInputMethod.cpp
index ff06c89a53..527d27a132 100644
--- a/src/frontends/qt/GuiInputMethod.cpp
+++ b/src/frontends/qt/GuiInputMethod.cpp
@@ -382,7 +382,7 @@ void GuiInputMethod::setPreeditStyle(
break;
case QInputMethodEvent::Cursor:
- d->caret_pos_ = setCaretPos(it.start);
+ d->caret_pos_ = getCaretPos(it.start);
d->style_.caret_visible_ = it.length != 0;
// colorization of caret is not implemented yet:
@@ -1207,7 +1207,8 @@ ParagraphMetrics * GuiInputMethod::resetParagraphMetrics(Cursor * cur) {
}
-pos_type GuiInputMethod::setCaretPos(size_type preedit_length) {
+pos_type GuiInputMethod::getCaretPos(size_type preedit_length)
+{
return d->cur_->top().pos() + preedit_length;
}
diff --git a/src/frontends/qt/GuiInputMethod.h b/src/frontends/qt/GuiInputMethod.h
index cf07d88749..b142d794b8 100644
--- a/src/frontends/qt/GuiInputMethod.h
+++ b/src/frontends/qt/GuiInputMethod.h
@@ -150,7 +150,7 @@ private:
ParagraphMetrics * resetParagraphMetrics(Cursor * cur);
///
- pos_type setCaretPos(size_type preedit_length);
+ pos_type getCaretPos(size_type preedit_length);
/// Aquire and set character style of each preedit segment from
/// attributes of the incoming input method event
void setPreeditStyle(const QList<QInputMethodEvent::Attribute> & attr);
More information about the lyx-cvs
mailing list