[immodule-qt] Re: qtextedit should setModified when received IMEnd Event

LiuCougar liucougar at gmail.com
Sat Jul 17 16:00:04 EEST 2004


oops, I now think this patch is not necessary

sorry

On Sat, 17 Jul 2004 01:08:54 +0000, LiuCougar <liucougar at gmail.com> wrote:
> Hi all,
> 
> This is the patch. I think this should be fixed
> 
> Do you think this is neccesary?
> 
> Regards,
> Cougar
> 
> Index: widgets/qtextedit.cpp
> ===================================================================
> --- widgets/qtextedit.cpp       (revision 17)
> +++ widgets/qtextedit.cpp       (working copy)
> @@ -1681,6 +1681,9 @@
>          cursor->setIndex( d->preeditStart );
>          insert( e->text() );
>      }
> +    if ( e->text().length() )
> +        setModified(TRUE);
> +
>      d->preeditStart = d->preeditLength = -1;
> 
>      repaintChanged();
>



More information about the immodule-qt mailing list