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

List:       kde-bindings
Subject:    Re: [Kde-bindings] QString
From:       "Christian A. Reiter" <chris.reiter () gmx ! at>
Date:       2010-02-16 19:51:32
Message-ID: 4B7AF744.1080303 () gmx ! at
[Download RAW message or body]

Am 2010-02-16 19:38, schrieb Arno Rehn:
> On Tuesday 16 February 2010 18:09:05 Christian A. Reiter wrote:
>   
>> Am 2010-02-16 09:57, schrieb Arno Rehn:
>>     
>>> The .NET framework offers other methods of string manipulation, like
>>> String.Format() which is similar to QString::arg(). A List<T> also offers
>>> a broader range of methods than a simple QList (thinking about LINQ
>>> here).
>>>       
>> Ok, understand.
>> And is there a reason why in Qyoto the setter and getter methods (e.g.
>>
>> ::setText(QString &text) and ::text()) are not mapped to a C# Property
>>
>> "Text" (with an internal getter and setter)?
>> ist this planned?
>>     
> It's already done, at least for methods used in Q_PROPERTIES. It's a bit hard 
> to do it for the other methods as well, because some of them are virtual, some 
> are missing the getter or the setter, some take more than one argument.
>
>   
I'm not that experienced, but would it be a dirty hack to create
Properties for all methods that start with "set" and end with a word
that exists as method as well? void ::setText(QString), string ::text();
--> string Text;
But yes, this would only work for one argument.
Thanks anyway.

_______________________________________________
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