[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    Re: [Kde-bindings] KDE/kdebindings/ruby/qtruby
From:       David Palacio <dpalacio () uninorte ! edu ! co>
Date:       2008-12-11 0:56:10
Message-ID: 200812101956.10273.dpalacio () uninorte ! edu ! co
[Download RAW message or body]

On Wednesday 10 December 2008 07:46:23 Richard Dale wrote:
> SVN commit 895236 by rdale:
>
> 	* Special case the Qt::Image.bits() method. Use the const variant so that
> 	  Qt doesn't make a deep copy. Is that what Davor Ocelic and David Palacio
> 	  would like it to do?
> 	* For other uses of 'uchar *' return types add a marshaller, hoping that
> 	  will be null terminated.
>
1) I checked which functions returned an uchar* in the Qt includes. All of 
them are expected to be used to directly transform the data.

2) If the returned String when changed also affects the QImage, it makes 
sense. That is the intention for the bits method. (Checks on IRB... it does 
not).

3) I was blindly translating a C++ application to Ruby and stumbled on bits(). 
Now I did it in another way, maybe not as efficient though.

If 1) is true and 2) does not change (which I think is unlikely to do), this 
might have little sense.
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic