From 2e985afb3aee480e4b7e1626b34bd998027807b8 Mon Sep 17 00:00:00 2001 From: renato araujo Date: Mon, 30 May 2011 16:25:38 -0300 Subject: [PATCH] Created ClassInfo documentation. Reviewer: Luciano Wolf Hugo Parente --- doc/extras/PySide.QtCore.ClassInfo.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc/extras/PySide.QtCore.ClassInfo.rst diff --git a/doc/extras/PySide.QtCore.ClassInfo.rst b/doc/extras/PySide.QtCore.ClassInfo.rst new file mode 100644 index 0000000..39edf3f --- /dev/null +++ b/doc/extras/PySide.QtCore.ClassInfo.rst @@ -0,0 +1,23 @@ +.. module:: PySide.QtCore +.. _ClassInfo: + +ClassInfo +********* + +This class is used to associates extra information to the class, which is available +using QObject.metaObject(). Qt and PySide doesn't use this information. + +The extra information takes the form of a dictionary with key and value in a literal string. + +.. note:: This Class is a implementation of Q_CLASSINFO macro. + + +Example +------- + +:: + + @ClassInfo(Author='PySide Team', URL='http://www.pyside.org') + class MyObject(QObject): + ... +