[Kde-bindings] Kalyptus - node types
Thomas Moenicke
pear at ippfp.org
Thu Dec 8 19:33:23 UTC 2005
Hi Richard,
you wrote:
> I can't find any properties associated with QEvent, only this:
>
> /* An internal class */
> class Q_EXPORT QDragResponseEvent : public QEvent
> {
> public:
> QDragResponseEvent( bool accepted )
>
> : QEvent(DragResponse), a(accepted) {}
>
> bool dragAccepted() const { return a; }
> protected:
> bool a;
> };
Oh. I found it here http://doc.trolltech.com/4.0/qevent.html
but I wondered why I could not find it?
> But Q_PROPERTY macros are currently skipped, by this code in 'kalyptus', at
> about line 540:
...
> So you would need to change kalyptus to parse Q_PROPERTY macros, and add a
> suitable property that you could pick up during the code generation.
I propose $cnode->{property} :)
> I
> haven't found a need to get at properties because there are always ordinary
> methods that allow you to get at the same data.
You are right. And the properties can be protected for all I care. But there
is a method named "print_r()" in php which prints an object and all
properties. This is useful and nice for any debugging.
It costs nothing to generate it additionally so I want to add it.
Thomas
----------------------------------------------------------------
Thomas Moenicke
thomas.moenicke at informatik.tu-cottbus.de
https://developer.berlios.de/projects/php-qt/
----------------------------------------------------------------
More information about the Kde-bindings
mailing list