[Development] [Feature] Q_INFO: Annotations for classes, methods, properties and enums

Olivier Goffart olivier at woboq.com
Wed Sep 11 22:39:54 CEST 2013


Hi,

>From the whole discussion, this is what I believe  it should look like:

class Foo {
  /* For class annotations, we keep the Q_CLASSINFO as it is */
  Q_CLASSINFO("foo", "bar")  

  /* For properties, we put the annotation in the property macro */
  Q_PROPERTY(int foo READ foo ANNOTATE foo = "bar")

public slots:
  /* Q_ANNOTATE macro in front of methods. */
  Q_ANNOTATE(foo = "bar") void mySlot();
};

No annotations for enums.

-- 
Olivier

Woboq - Qt services and support - http://woboq.com - http://code.woboq.org




More information about the Development mailing list