Doc: Add since version for QJson method and enum

QJsonValue::toInt() introduced in 5.2, 7372c6cf9d4
QJsonDocument::JsonFormat introduced in 5.1, 4bb5566632e

Task-number: QTBUG-69527
Change-Id: Idb9df959f82fe7061e0afe2109f1ca34a4451a5f
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
This commit is contained in:
Paul Wicking 2018-07-18 18:02:18 +02:00
parent 8e40e390c6
commit 603fbd06fb
2 changed files with 2 additions and 0 deletions

View File

@ -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().

View File

@ -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,