[Kde-java] QTableItem.paint, kalyptus
Richard Dale
kde-java@kde.org
Fri, 22 Feb 2002 16:33:04 +0000
On Friday 22 February 2002 11:56 am, Marcel Toele wrote:
> Hi people !
>
> In class QTableItem:
> public void paint( QPainter p, QColorGroup cg, QRect cr, boolean selected )
>
> doesn't get delegated from C++ to java, so you cannot subclass QTableItem
> :((
>
> It seems a good idea to put it in, so we can have coloured(UK)/colored(VS)
> TableItems and all such cool stuff.
Yes - I am keen to add callbacks for all such virtual methods - I agree
they're needed. I'll try and add them as soon as I can..
-- Richard
>
>
> P.S.
> I am still using KDE2.2.2 here, can the kalyptus in HEAD still create
> bindings for KDE2.2.2 ???
The only difference is that an extra parameter is passed to the
QWidget::parentWidget() call in the finalize() methods of java QWidget
descendants. A global edit should fix that.
> oh, and how does Kalyptus know which bindings to
> delegate back to java and which to leave as is ?
lines 805 - 808 of kalyptusCxxToJava.pm, sub generateBridgeEventHandlers() :
} elsif( $type eq "method" && $m->{Flags} =~ "v" ) {
;
}
Just a matter of filling in the blanks! It means adding some code generation
here for the various types of virtual method callbacks. And then writing the
callback code in the QtJava runtime.
-- Richard