[Kde-bindings] disconnecting a block in qtruby4

Davor Ocelic docelic at spinlocksolutions.com
Thu Jan 22 22:26:40 UTC 2009


On Thu, 22 Jan 2009 14:50:53 +0000
Richard Dale <rdale at foton.es> wrote:

> On Thursday 22 January 2009 14:39:04 Davor Ocelic wrote:
> > On Thu, 22 Jan 2009 11:43:51 +0000
> >
> > Richard Dale <rdale at foton.es> wrote:
> > > The Qt3 version of QtRuby had some quite good online docs, and we
> > > should try and get the KDE TechBase wiki up to a similar standard.
> >
> > Are you referring to
> >   http://techbase.kde.org/Development/Languages/Ruby ?
> Yes, that is the Qt3 stuff that used to be on KDE developers corner
> moved to TechBase. So we need to go through that translating to Qt4
> where it has changed and add any new things like connecting blocks
> with names (if we do that) and so on.

A question re. programming style.

I've noticed that qtruby examples are just a quick translation of
the C equivalents, and they retain unnecessary parentheses etc. from
C code.

If we're updating the wiki page on TechBase, how about also bringing
the code to a bit more elegant state, primarily by removing unneeded
parentheses, such as:

a = Qt::Application.new(ARGV)   -->   a= Qt::Application.new ARGV

And similar.

-doc



More information about the Kde-bindings mailing list