summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2019-07-18 08:41:34 +0200
committerPaul Wicking <paul.wicking@qt.io>2019-07-18 13:23:39 +0200
commit1bfa31849d3a23bfdc3b60aec7f645de2e1f81d5 (patch)
tree61f616ee9e0bbc561b4f7d74479b0075a714e065
parentf806d64249c6e961ab12270d3a045e9980e19cf4 (diff)
Doc: Fix typos in code snippets
Fixes: QTBUG-77094 Change-Id: Ia974c4d8abeab48a206fb868ee5532d4aeae7319 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r--src/qml/doc/src/cppintegration/definetypes.qdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/doc/src/cppintegration/definetypes.qdoc b/src/qml/doc/src/cppintegration/definetypes.qdoc
index 41bc9fd140..b7199393f7 100644
--- a/src/qml/doc/src/cppintegration/definetypes.qdoc
+++ b/src/qml/doc/src/cppintegration/definetypes.qdoc
@@ -471,7 +471,7 @@ will be accessible to the \e attachee:
class MessageBoardAttachedType : public QObject
{
Q_OBJECT
- Q_PROPERTY(bool expired READ expired WRITE expired NOTIFY expiredChanged)
+ Q_PROPERTY(bool expired READ setExpired WRITE expired NOTIFY expiredChanged)
public:
MessageBoardAttachedType(QObject *parent);
bool expired() const;
@@ -493,7 +493,7 @@ class MessageBoard : public QObject
{
Q_OBJECT
public:
- static MessageBoard *qmlAttachedProperties(QObject *object)
+ static MessageBoardAttachedType *qmlAttachedProperties(QObject *object)
{
return new MessageBoardAttachedType(object);
}