Changeset View
Changeset View
Standalone View
Standalone View
src/TerminalDisplay.cpp
Show First 20 Lines • Show All 3444 Lines • ▼ Show 20 Line(s) | 3444 | default: | |||
---|---|---|---|---|---|
3445 | break; | 3445 | break; | ||
3446 | } | 3446 | } | ||
3447 | 3447 | | |||
3448 | return QVariant(); | 3448 | return QVariant(); | ||
3449 | } | 3449 | } | ||
3450 | 3450 | | |||
3451 | QRect TerminalDisplay::preeditRect() const | 3451 | QRect TerminalDisplay::preeditRect() const | ||
3452 | { | 3452 | { | ||
3453 | const int preeditLength = string_width(_inputMethodData.preeditString); | 3453 | const int preeditLength = Character::stringWidth(_inputMethodData.preeditString); | ||
3454 | 3454 | | |||
3455 | if (preeditLength == 0) { | 3455 | if (preeditLength == 0) { | ||
3456 | return QRect(); | 3456 | return QRect(); | ||
3457 | } | 3457 | } | ||
3458 | const QRect stringRect(_contentRect.left() + _fontWidth * cursorPosition().x(), | 3458 | const QRect stringRect(_contentRect.left() + _fontWidth * cursorPosition().x(), | ||
3459 | _contentRect.top() + _fontHeight * cursorPosition().y(), | 3459 | _contentRect.top() + _fontHeight * cursorPosition().y(), | ||
3460 | _fontWidth * preeditLength, | 3460 | _fontWidth * preeditLength, | ||
3461 | _fontHeight); | 3461 | _fontHeight); | ||
▲ Show 20 Lines • Show All 537 Lines • Show Last 20 Lines |