[Kde-bindings] small qtruby example
Alexander Kellett
lypanov at kde.org
Thu Jul 31 17:59:04 UTC 2003
On Thu, Jul 31, 2003 at 06:45:48PM +0100, Richard Dale wrote:
> On Thursday 31 July 2003 16:57, Alexander Kellett wrote:
> It really needs a 'constant_missing' method that would allow you to trap
> references to constants like Qt::RichText, but I couldn't find any way of
> doing it.
okay. i'll look into this.
> > also. you can get quite
> > strange bugs when you
> > subclass a Qt object
> > as method_missing is
> > called for any locals
> > you forgot to declare,
> > makes for really wierd
> > error messages for
> > very simple errors :)
> Yes, I don't know if there's much I can do about that to improve the error
> messages.
i'll look into this also :)
> > source is pretty unreadable
> > at the moment as i really
> > did it in a dash effort
> > but, still, for such a
> > short amount of code,
> > it does a *lot*, so:
> I didn't have this require - is that a ruby 1.8 thing?
> require 'rexml/document'
yup. 1.8.* builtin.
but also available seperate from raa for 1.6.
> I fixed the crash on hitting the cancel button in the save dialog - it wasn't
> testing for QString::null.
aah. excellent. thanks!
Alex
More information about the Kde-bindings
mailing list