[Uim-bugs] [Bug 26265] Slowness using uim in QT applications

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Mar 6 06:38:34 PST 2010


http://bugs.freedesktop.org/show_bug.cgi?id=26265





--- Comment #13 from Etsushi Kato <ek.kato at gmail.com>  2010-03-06 06:38:27 PST ---
(In reply to comment #11)

Maybe this should be better.  It also update the line when deleting preedit
text.

--- qt-kde-qt-mac/src/gui/widgets/qlinecontrol.cpp.orig 2010-02-17
12:18:04.000000000 +0900
+++ qt-kde-qt-mac/src/gui/widgets/qlinecontrol.cpp      2010-03-06
23:35:54.000000000 +0900
@@ -406,8 +406,9 @@
 void QLineControl::processInputMethodEvent(QInputMethodEvent *event)
 {
     int priorState = 0;
+    QString oldPreeditText = preeditAreaText();
     bool isGettingInput = !event->commitString().isEmpty()
-            || event->preeditString() != preeditAreaText()
+            || event->preeditString() != oldPreeditText
             || event->replacementLength() > 0;
     bool cursorPositionChanged = false;

@@ -477,6 +478,8 @@
     }
     m_textLayout.setAdditionalFormats(formats);
     updateDisplayText();
+    if (preeditAreaText() != oldPreeditText)
+        emit displayTextChanged(preeditAreaText());
     if (cursorPositionChanged)
         emitCursorPositionChanged();
     if (isGettingInput)


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the uim-bugs mailing list