mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
WS changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17684 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1b591e71b2
commit
7b31bf784a
@ -607,7 +607,7 @@ void GuiWorkArea::inputMethodEvent(QInputMethodEvent * e)
|
||||
else
|
||||
stopBlinkingCursor();
|
||||
|
||||
// last_width : for checking if last preedit string was/wasn't empty.
|
||||
// last_width : for checking if last preedit string was/wasn't empty.
|
||||
static bool last_width = false;
|
||||
if (!last_width && preedit_string.empty()) {
|
||||
// if last_width is last length of preedit string.
|
||||
@ -636,11 +636,11 @@ void GuiWorkArea::inputMethodEvent(QInputMethodEvent * e)
|
||||
}
|
||||
last_width = true;
|
||||
|
||||
// att : stores an IM attribute.
|
||||
// att : stores an IM attribute.
|
||||
QList<QInputMethodEvent::Attribute> const & att = e->attributes();
|
||||
|
||||
// get attributes of input method cursor.
|
||||
// cursor_pos : cursor position in preedit string.
|
||||
// cursor_pos : cursor position in preedit string.
|
||||
size_t cursor_pos = 0;
|
||||
bool cursor_is_visible = false;
|
||||
for (int i = 0; i < att.size(); ++i) {
|
||||
@ -655,9 +655,9 @@ void GuiWorkArea::inputMethodEvent(QInputMethodEvent * e)
|
||||
|
||||
// get position of selection in input method.
|
||||
// FIXME: isn't there a way to do this simplier?
|
||||
// rStart : cursor position in selected string in IM.
|
||||
// rStart : cursor position in selected string in IM.
|
||||
size_t rStart = 0;
|
||||
// rLength : selected string length in IM.
|
||||
// rLength : selected string length in IM.
|
||||
size_t rLength = 0;
|
||||
if (cursor_pos < preedit_length) {
|
||||
for (int i = 0; i < att.size(); ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user