summaryrefslogtreecommitdiffstats
path: root/src/shared/qwaylandinputmethodeventbuilder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/qwaylandinputmethodeventbuilder.h')
-rw-r--r--src/shared/qwaylandinputmethodeventbuilder.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/qwaylandinputmethodeventbuilder.h b/src/shared/qwaylandinputmethodeventbuilder.h
index 188a6a94b..3912afc04 100644
--- a/src/shared/qwaylandinputmethodeventbuilder.h
+++ b/src/shared/qwaylandinputmethodeventbuilder.h
@@ -61,7 +61,8 @@ public:
QInputMethodEvent buildCommit(const QString &text);
QInputMethodEvent buildPreedit(const QString &text);
- static int indexFromWayland(const QString &str, int utf8Index, int baseIndex = 0);
+ static int indexFromWayland(const QString &text, int length, int base = 0);
+ static int indexToWayland(const QString &text, int length, int base = 0);
private:
QPair<int, int> replacementForDeleteSurrounding();