On Wed, 20 Jan 2010, Pritpal Bedi wrote:

Hi,

> To reduce overall cluttering in Qt code I have to 
> define this constant for every Qt class as :
> #xtranslate QTextCursor( <x> ) => QTextCursor():configure( <x> )
> I am wondering if there do exist a way to achieve it otherwise.

I'm afraid that I do not know what is the problem and what you
want to do. The above PP rule is correct so it will work.
Anyhow if QTextCursor() is class function then each call to
QTextCursor() create new object of QTextCursor class.
Is it a problem?
Or maybe you only want to pass more parameters to :configure() method?
If yes then it's enough to change the PP rule to:
   #xtranslate QTextCursor( <x,...> ) => QTextCursor():configure( <x> )

best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to