summaryrefslogtreecommitdiffstats
path: root/src/widgets/itemviews/qabstractitemview.cpp
diff options
context:
space:
mode:
authorJerome Pasion <jerome.pasion@digia.com>2013-10-02 16:51:05 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-08 00:46:27 +0200
commit4533cc994484a2308297e64e99af005fb4dca065 (patch)
treebc66283d11cdad100a1aec03f4e1d86bedc9a79e /src/widgets/itemviews/qabstractitemview.cpp
parent50dd0232b61d8ea3fb9aab18972c6e19678656e6 (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/qabstractitemview.cpp')
-rw-r--r--src/widgets/itemviews/qabstractitemview.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/widgets/itemviews/qabstractitemview.cpp b/src/widgets/itemviews/qabstractitemview.cpp
index f4a98d2575..35ba1ed74e 100644
--- a/src/widgets/itemviews/qabstractitemview.cpp
+++ b/src/widgets/itemviews/qabstractitemview.cpp
@@ -566,8 +566,8 @@ void QAbstractItemViewPrivate::_q_scrollerStateChanged()
/*!
\fn bool QAbstractItemView::isIndexHidden(const QModelIndex &index) const
- Returns true if the item referred to by the given \a index is hidden in the view,
- otherwise returns false.
+ Returns \c true if the item referred to by the given \a index is hidden in the view,
+ otherwise returns \c false.
Hiding is a view specific feature. For example in TableView a column can be marked
as hidden or a row in the TreeView.
@@ -1495,11 +1495,11 @@ Qt::DropAction QAbstractItemView::defaultDropAction() const
\property QAbstractItemView::alternatingRowColors
\brief whether to draw the background using alternating colors
- If this property is true, the item background will be drawn using
+ If this property is \c true, the item background will be drawn using
QPalette::Base and QPalette::AlternateBase; otherwise the background
will be drawn using the QPalette::Base color.
- By default, this property is false.
+ By default, this property is \c false.
*/
void QAbstractItemView::setAlternatingRowColors(bool enable)
{
@@ -2061,7 +2061,7 @@ void QAbstractItemView::dropEvent(QDropEvent *event)
else
// place at row, col in drop index
- If it returns true a drop can be done, and dropRow, dropCol and dropIndex reflects the position of the drop.
+ If it returns \c true a drop can be done, and dropRow, dropCol and dropIndex reflects the position of the drop.
\internal
*/
bool QAbstractItemViewPrivate::dropOn(QDropEvent *event, int *dropRow, int *dropCol, QModelIndex *dropIndex)
@@ -2547,8 +2547,8 @@ QModelIndexList QAbstractItemView::selectedIndexes() const
/*!
Starts editing the item at \a index, creating an editor if
- necessary, and returns true if the view's \l{State} is now
- EditingState; otherwise returns false.
+ necessary, and returns \c true if the view's \l{State} is now
+ EditingState; otherwise returns \c false.
The action that caused the editing process is described by
\a trigger, and the associated event is specified by \a event.