[immodule-qt] Re: Question about deletion of the method of QInputContext

Choe Hwanjin choe.hwanjin at gmail.com
Sun Jan 9 13:32:40 EET 2005


On Sun, 09 Jan 2005 20:18:35 +0900, Daisuke Kameda
<kaminmat at cc.rim.or.jp> wrote:
> Lars Knoll <lars at trolltech.com> wrote:
> > On Wednesday 05 January 2005 17:52, Daisuke Kameda wrote:
> > > 1.  About setFocus() and unsetFocus().
> > > setFocus() and unsetFocus() were deleted from QInputContext and, naturally
> > > the corresponding call was also deleted. I think it unnatural and unclear
> > > to substitute setFocusWidget() and unsetFocusWidget().
> > >
> > > Why did you determine in this way?
> >
> > Because you do not set focus on an input context. You notify the input context
> > about focus changes.
> 
> I can't understand what this comment mean.
> Is it the meaning that the contents of these function were empty?
> 
> If so, I think it good to change them into a pure virtual function,
> without deleting.
> 
> setFocus() and unsetFocus() are virtual function.
> These behavior are defined in subclass of QInputContext.

My qt input module, qimhangul implement this functions, setFocus() and
unsetFocus().
You can look up my codes here:
http://cvs.kldp.net/cgi-bin/cvsweb.cgi/qimhangul/?cvsroot=qimhangul
especially they are in qinputcontexthangul.cpp:
http://cvs.kldp.net/cgi-bin/cvsweb.cgi/qimhangul/qinputcontexthangul.cpp?rev=1.10&contenttype=text/x-cvsweb-markup&cvsroot=qimhangul



More information about the immodule-qt mailing list