[immodule-qt] [PATCH] Surrounding text

Daisuke Kameda kaminmat at cc.rim.or.jp
Mon Oct 11 11:55:18 EEST 2004


On Wednesday 06 October 2004 14:13, Anuradha Ratnaweera wrote:
> Need a bit of clarification on this. (please be kind enough to correct
> me if I say something silly here, because I am very poor at C++ and
> OOP in general :-)).

OK. Please don't care.
I am poor at English:)

> As the im{Get,Delete}Surrounding() of the actual widgets (QLineEdit
> and QTextEdit) are called only if they are virtual in QWidget, even
> with the above solution, they will _work_ only if -inputmethod-ext is
> specified.  Is it the same for icHolderWidget()?  If yes, what's the
> reason to do it?  Is it to make sure that the im modules using these
> functions compile whether -inputmethod-ext is specified or not?

Above solution is the same for icHolderWidget(). 

icHolderWidget() is always used Whether --inputmethod-ext is specified 
or not. However, Only if -inputmethod-ext is specified, icHolderWidget() 
is able to be overridden in subclass of QWidget.

But, icHolderWidget() is not overridden in QLineEdit and QTextEdit,
even if -inputmethod-ext is specified. This solution is for other
subclass of QWidget, or subclass of QLineEdit or QTextEdit.


> If the answer to the last question is yes, I will send a new patch.  I
> have almost done it, but didn't want to post until I get this bit
> clarified.

I want to see this patch. Please send.

Regards,
-- 
Daisuke Kameda <kaminmat at cc.rim.or.jp>



More information about the immodule-qt mailing list