[immodule-qt] [PATCH] Surrounding text

Daisuke Kameda kaminmat at cc.rim.or.jp
Mon Sep 27 18:28:41 EEST 2004


On Friday 24 September 2004 17:47, Anuradha Ratnaweera wrote:
> I believe so.  I tried (just for fun ;-)) to change the KoTextView to
> subclass from QWidget instead of QObject, and implemented blank
> overides for im functions, and it didn't work.  But I am planning to
> have a serious look at them when we release Sinhala GNU/Linux 0.2 by
> the weekend.

I'm sorry about delaying reply.


> Thanks.  What's the neat way add it only if qt+im is compiled with
> binary incompatibility enabled?

I have considered. Probably, the best solution is that we implement
QWidget::imGetSurrounding() and QWidget::imDeleteSurrounding()
like QWidget::icHolderWidget().

These are set to virtual when QT_NO_IM_EXTENSIONS is defined 
(configure option is -inputmethod-ext). And these functions of QLineEdit 
and QTextEdit are made to be compiled only in this case.

What do you think about this solution?


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




More information about the immodule-qt mailing list