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.qdoc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/doc/src/declarative/qtbinding.qdoc b/src/doc/src/declarative/qtbinding.qdoc
index 2c80aa8c..f173025c 100644
--- a/src/doc/src/declarative/qtbinding.qdoc
+++ b/src/doc/src/declarative/qtbinding.qdoc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the documentation of the Qt Toolkit.
@@ -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.
*/
-
-