aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml
diff options
context:
space:
mode:
authorJerome Pasion <jerome.pasion@digia.com>2013-02-14 15:01:52 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-15 11:26:28 +0100
commitcf3327cfbe861c0ee33008df20a53949034ac95e (patch)
tree87c8a4c5153a3388fa34e29e60404b66befaa657 /src/qml
parent76d1e5e611d53ad61936100cb47d13be21f3d8be (diff)
Doc: Removed reference to deprecated \badcode command.
QDoc doesn't differentiate between \badcode and \code. They both look the same in the output. Change-Id: Ia0580f7d664ad5e33b48d6511dac7c61349cacce Reviewed-by: Martin Smith <martin.smith@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src/qml')
-rw-r--r--src/qml/doc/src/cppintegration/interactqmlfromcpp.qdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/doc/src/cppintegration/interactqmlfromcpp.qdoc b/src/qml/doc/src/cppintegration/interactqmlfromcpp.qdoc
index 31a68d34fa..04b278106f 100644
--- a/src/qml/doc/src/cppintegration/interactqmlfromcpp.qdoc
+++ b/src/qml/doc/src/cppintegration/interactqmlfromcpp.qdoc
@@ -147,8 +147,8 @@ custom element \c PushButton with a \c buttonText property that internally
reflects the value of a \c m_buttonText member variable. Modifying the member
variable directly like this is not a good idea:
-\badcode
-// BAD!
+\code
+//bad code
QQmlComponent component(engine, "MyButton.qml");
PushButton *button = qobject_cast<PushButton*>(component.create());
button->m_buttonText = "Click me";