diff options
author | Martin Smith <msmith@trolltech.com> | 2010-01-13 12:13:07 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2010-01-13 12:13:07 (GMT) |
commit | cd0772335cc9bcedd582cacc834bf4609ca650b0 (patch) | |
tree | d79fd07b683ec0ff107c05c79490cd1073af70e4 /doc/src/snippets/code | |
parent | c96c83df302fe35b9ac98528b288a8ed2ac65286 (diff) | |
download | Qt-cd0772335cc9bcedd582cacc834bf4609ca650b0.zip Qt-cd0772335cc9bcedd582cacc834bf4609ca650b0.tar.gz Qt-cd0772335cc9bcedd582cacc834bf4609ca650b0.tar.bz2 |
doc: This bug wasn't really a bug; it just required clarification.
The reported bug was actually not a bug. It is ok to pass the enum
value as a string here, because the enumeration type has been
registered with the meta-object system with the Q_ENUMS()
macro. However, I have added a bit of text to clarify things a bit.
Task-number: QTBUG-7158
Diffstat (limited to 'doc/src/snippets/code')
-rw-r--r-- | doc/src/snippets/code/doc_src_properties.qdoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/snippets/code/doc_src_properties.qdoc b/doc/src/snippets/code/doc_src_properties.qdoc index 38cc139..962d930 100644 --- a/doc/src/snippets/code/doc_src_properties.qdoc +++ b/doc/src/snippets/code/doc_src_properties.qdoc @@ -112,7 +112,7 @@ MyClass *myinstance = new MyClass; QObject *object = myinstance; myinstance->setPriority(MyClass::VeryHigh); -object->setProperty("priority", (int)MyClass::VeryHigh); +object->setProperty("priority", "VeryHigh"); //! [6] |