Valid Q_PROPERTY ?

Milian Wolff mail at milianw.de
Wed Oct 21 21:25:35 UTC 2009


On Thursday 22 October 2009 03:08:38 Ruan Strydom wrote:
> Sorry, if I helped you it would be like the blind leading the blind,
> 
> and sorry taking an opportunity here:
> 
> If I had these members:
> 
>     typedef const int & Cir;
>     enum Abc {A, B, C};
> 
>     Cir m_test1;
>     int &_test2;
>     int t[B];
> 
> would these properties be correct?
> 
>     Q_PROPERTY(int test1 READ test1)
>     Q_PROPERTY(int test2 READ test2 WRITE setTest2)
>     Q_PROPERTY(int t READ getT WRITE setT)

Ruan: For the future, please open a new thread for that. Thread-hijacking is 
not "nice" ;-)

As far as I can tell, yes these properties look good. But I never used 
Q_PROPERTY so far, so maybe ask in #qt on freenode, or lookup the 
documentation. Or wait for someone else to answer this question.

Also get in contact with Leinir in #kdevelop, he always wanted such a plugin 
afaik.

Have a nice day.
-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20091021/c498c2ad/attachment.sig>


More information about the KDevelop-devel mailing list