summaryrefslogtreecommitdiffstats
path: root/src/doc/src/declarative/qtbinding.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/src/declarative/qtbinding.qdoc')
-rw-r--r--src/doc/src/declarative/qtbinding.qdoc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/doc/src/declarative/qtbinding.qdoc b/src/doc/src/declarative/qtbinding.qdoc
index 58d28159..f173025c 100644
--- a/src/doc/src/declarative/qtbinding.qdoc
+++ b/src/doc/src/declarative/qtbinding.qdoc
@@ -391,8 +391,8 @@ say you have a custom element \c PushButton with a \c buttonText property that i
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
QDeclarativeComponent component(engine, "MyButton.qml");
PushButton *button = qobject_cast<PushButton*>(component.create());
button->m_buttonText = "Click me";
@@ -665,5 +665,3 @@ be used to build the application resources:
See \l {The Qt Resource System} for more information.
*/
-
-