[immodule-qt] qtextedit should call the virtual insert function

LiuCougar liucougar at gmail.com
Sat Jul 17 19:46:57 EEST 2004


Hi all,
This patch is used to make qtextedit sub classes which reimplement
their own insert function work properly (such as kbabel)

I have commited this in the bc-branches and trunk (r19 and r20)

In Qt4, another insert function is made virtual, then we should use that new one

Index: src/widgets/qtextedit.cpp
===================================================================
--- src/widgets/qtextedit.cpp   (revision 17)
+++ src/widgets/qtextedit.cpp   (working copy)
@@ -1679,7 +1679,7 @@
        cursor->paragraph()->remove( d->preeditStart, d->preeditLength );
     if ( d->preeditStart >= 0 ) {
         cursor->setIndex( d->preeditStart );
-        insert( e->text() );
+        insert( e->text(), false );
     }
     d->preeditStart = d->preeditLength = -1;

Regards,
Cougar



More information about the immodule-qt mailing list