diff options
author | Geir Vattekar <geir.vattekar@trolltech.com> | 2009-05-06 14:48:55 (GMT) |
---|---|---|
committer | Geir Vattekar <geir.vattekar@trolltech.com> | 2009-05-06 14:48:55 (GMT) |
commit | 92f2815bf45a67ec8c6b94ca26fb8598a07a6de2 (patch) | |
tree | c29fe0c62f0c2bec932055c5f0ff82eef72674da /doc | |
parent | 91ffeeb342ce85dbd24f49c45adce5cb21a973a4 (diff) | |
download | Qt-92f2815bf45a67ec8c6b94ca26fb8598a07a6de2.zip Qt-92f2815bf45a67ec8c6b94ca26fb8598a07a6de2.tar.gz Qt-92f2815bf45a67ec8c6b94ca26fb8598a07a6de2.tar.bz2 |
Doc: Added info on NOTIFY to the Q_PROPERTY docs.
Task-number: 248336
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/properties.qdoc | 7 | ||||
-rw-r--r-- | doc/src/snippets/code/doc_src_properties.qdoc | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/doc/src/properties.qdoc b/doc/src/properties.qdoc index 0775b12..d934f13 100644 --- a/doc/src/properties.qdoc +++ b/doc/src/properties.qdoc @@ -89,7 +89,12 @@ and QWidget::setCursor(), and it also has a \c RESET function, QWidget::unsetCursor(), since no call to QWidget::setCursor() can mean \e {reset to the context specific cursor}. The \c RESET - function musrt return void and take no parameters. + function must return void and take no parameters. + + \o A \c NOTIFY signal is optional. If defined, the signal will be + emitted whenever the value of the property changes. The signal must + take one parameter, which must be of the same type as the property; the + parameter will take the new value of the property. \o The \c DESIGNABLE attribute indicates whether the property should be visible in the property editor of GUI design tool (e.g., diff --git a/doc/src/snippets/code/doc_src_properties.qdoc b/doc/src/snippets/code/doc_src_properties.qdoc index ba7f79b..377cc9c 100644 --- a/doc/src/snippets/code/doc_src_properties.qdoc +++ b/doc/src/snippets/code/doc_src_properties.qdoc @@ -3,6 +3,7 @@ Q_PROPERTY(type name READ getFunction [WRITE setFunction] [RESET resetFunction] + [NOTIFY notifySignal] [DESIGNABLE bool] [SCRIPTABLE bool] [STORED bool] |