diff options
author | Jerome Pasion <jerome.pasion@digia.com> | 2013-10-02 16:51:05 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-08 00:46:27 +0200 |
commit | 4533cc994484a2308297e64e99af005fb4dca065 (patch) | |
tree | bc66283d11cdad100a1aec03f4e1d86bedc9a79e /src/widgets/itemviews/qdirmodel.cpp | |
parent | 50dd0232b61d8ea3fb9aab18972c6e19678656e6 (diff) |
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 <oswald.buddenhagen@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src/widgets/itemviews/qdirmodel.cpp')
-rw-r--r-- | src/widgets/itemviews/qdirmodel.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/widgets/itemviews/qdirmodel.cpp b/src/widgets/itemviews/qdirmodel.cpp index e1ba0ede57..1e51f4e073 100644 --- a/src/widgets/itemviews/qdirmodel.cpp +++ b/src/widgets/itemviews/qdirmodel.cpp @@ -395,8 +395,8 @@ QVariant QDirModel::data(const QModelIndex &index, int role) const /*! Sets the data for the model item \a index with the given \a role to - the data referenced by the \a value. Returns true if successful; - otherwise returns false. + the data referenced by the \a value. Returns \c true if successful; + otherwise returns \c false. \sa Qt::ItemDataRole */ @@ -456,8 +456,8 @@ QVariant QDirModel::headerData(int section, Qt::Orientation orientation, int rol } /*! - Returns true if the \a parent model item has children; otherwise - returns false. + Returns \c true if the \a parent model item has children; otherwise + returns \c false. */ bool QDirModel::hasChildren(const QModelIndex &parent) const @@ -566,7 +566,7 @@ QMimeData *QDirModel::mimeData(const QModelIndexList &indexes) const the given \a action over the row in the model specified by the \a row and \a column and by the \a parent index. - Returns true if the drop was successful, and false otherwise. + Returns \c true if the drop was successful, and false otherwise. \sa supportedDropActions() */ @@ -771,7 +771,7 @@ bool QDirModel::resolveSymlinks() const If this property is set to false, the directory model will allow renaming, copying and deleting of files and directories. - This property is true by default + This property is \c true by default */ void QDirModel::setReadOnly(bool enable) @@ -796,7 +796,7 @@ bool QDirModel::isReadOnly() const Otherwise the directory model will report that an item has children if the item is a directory. - This property is false by default + This property is \c false by default */ void QDirModel::setLazyChildCount(bool enable) @@ -966,8 +966,8 @@ QModelIndex QDirModel::index(const QString &path, int column) const } /*! - Returns true if the model item \a index represents a directory; - otherwise returns false. + Returns \c true if the model item \a index represents a directory; + otherwise returns \c false. */ bool QDirModel::isDir(const QModelIndex &index) const |