From 4533cc994484a2308297e64e99af005fb4dca065 Mon Sep 17 00:00:00 2001 From: Jerome Pasion Date: Wed, 2 Oct 2013 16:51:05 +0200 Subject: Doc: Adding mark-up to boolean default values. Default values should have mark-up to denote that they are code. This commit changes: -"property is true" to "property is \c true". -"Returns true" to "Returns \c true". -"property is false" to "property is \c false". -"returns true" to "returns \c true". -"returns false" to "returns \c false". src/3rdparty and non-documentation instances were ignored. Task-number: QTBUG-33360 Change-Id: Ie87eaa57af947caa1230602b61c5c46292a4cf4e Reviewed-by: Oswald Buddenhagen Reviewed-by: Jerome Pasion --- src/corelib/kernel/qmimedata.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/corelib/kernel/qmimedata.cpp') diff --git a/src/corelib/kernel/qmimedata.cpp b/src/corelib/kernel/qmimedata.cpp index 6e571d2969..483692cdf8 100644 --- a/src/corelib/kernel/qmimedata.cpp +++ b/src/corelib/kernel/qmimedata.cpp @@ -363,8 +363,8 @@ void QMimeData::setUrls(const QList &urls) } /*! - Returns true if the object can return a list of urls; otherwise - returns false. + Returns \c true if the object can return a list of urls; otherwise + returns \c false. URLs correspond to the MIME type \c text/uri-list. @@ -402,8 +402,8 @@ void QMimeData::setText(const QString &text) } /*! - Returns true if the object can return plain text (MIME type \c - text/plain); otherwise returns false. + Returns \c true if the object can return plain text (MIME type \c + text/plain); otherwise returns \c false. \sa setText(), text(), hasHtml(), hasFormat() */ @@ -438,8 +438,8 @@ void QMimeData::setHtml(const QString &html) } /*! - Returns true if the object can return HTML (MIME type \c - text/html); otherwise returns false. + Returns \c true if the object can return HTML (MIME type \c + text/html); otherwise returns \c false. \sa setHtml(), html(), hasFormat() */ @@ -484,7 +484,7 @@ void QMimeData::setImageData(const QVariant &image) } /*! - Returns true if the object can return an image; otherwise returns + Returns \c true if the object can return an image; otherwise returns false. \sa setImageData(), imageData(), hasFormat() @@ -528,8 +528,8 @@ void QMimeData::setColorData(const QVariant &color) /*! - Returns true if the object can return a color (MIME type \c - application/x-color); otherwise returns false. + Returns \c true if the object can return a color (MIME type \c + application/x-color); otherwise returns \c false. \sa setColorData(), colorData(), hasFormat() */ @@ -572,8 +572,8 @@ void QMimeData::setData(const QString &mimeType, const QByteArray &data) } /*! - Returns true if the object can return data for the MIME type - specified by \a mimeType; otherwise returns false. + Returns \c true if the object can return data for the MIME type + specified by \a mimeType; otherwise returns \c false. For the most common types of data, you can call the higher-level functions hasText(), hasHtml(), hasUrls(), hasImage(), and -- cgit v1.2.3