Skip to content

Commit

Permalink
Doc: Add since version for QJson method and enum
Browse files Browse the repository at this point in the history
QJsonValue::toInt() introduced in 5.2, 7372c6cf9d4
QJsonDocument::JsonFormat introduced in 5.1, 4bb5566

Task-number: QTBUG-69527
Change-Id: Idb9df959f82fe7061e0afe2109f1ca34a4451a5f
Reviewed-by: Mitch Curtis <[email protected]>
  • Loading branch information
paulwicking committed Jul 19, 2018
1 parent 8e40e39 commit 603fbd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/corelib/serialization/qjsondocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ QByteArray QJsonDocument::toJson() const

/*!
\enum QJsonDocument::JsonFormat
\since 5.1
This value defines the format of the JSON byte array produced
when converting to a QJsonDocument using toJson().
Expand Down
1 change: 1 addition & 0 deletions src/corelib/serialization/qjsonvalue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ bool QJsonValue::toBool(bool defaultValue) const
}

/*!
\since 5.2
Converts the value to an int and returns it.
If type() is not Double or the value is not a whole number,
Expand Down

0 comments on commit 603fbd0

Please sign in to comment.