From c5b34ea67668e60a61c463633eaae0e629fee606 Mon Sep 17 00:00:00 2001 From: Geir Vattekar Date: Mon, 24 Aug 2009 15:21:35 +0200 Subject: Doc: Said that an item set as the current item in an item view is also selected unless the selection mode is NoSelection. Task-number: 151920 Reviewed-by: Marius Bugge Monsen --- src/gui/itemviews/qabstractitemview.cpp | 4 +++- src/gui/itemviews/qlistwidget.cpp | 3 ++- src/gui/itemviews/qtablewidget.cpp | 4 ++-- src/gui/itemviews/qtreewidget.cpp | 3 ++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp index 0671304..bca5df7 100644 --- a/src/gui/itemviews/qabstractitemview.cpp +++ b/src/gui/itemviews/qabstractitemview.cpp @@ -908,7 +908,9 @@ QAbstractItemView::SelectionBehavior QAbstractItemView::selectionBehavior() cons /*! Sets the current item to be the item at \a index. - Depending on the current selection mode, the item may also be selected. + + Unless the current selection mode is + \l{QAbstractItemView::}{NoSelection}, the item is also be selected. Note that this function also updates the starting position for any new selections the user performs. diff --git a/src/gui/itemviews/qlistwidget.cpp b/src/gui/itemviews/qlistwidget.cpp index 232b4d2..64f2883 100644 --- a/src/gui/itemviews/qlistwidget.cpp +++ b/src/gui/itemviews/qlistwidget.cpp @@ -1432,7 +1432,8 @@ QListWidgetItem *QListWidget::currentItem() const /*! Sets the current item to \a item. - Depending on the current selection mode, the item may also be selected. + Unless the selection mode is \l{QAbstractItemView::}{NoSelection}, + the item is also be selected. */ void QListWidget::setCurrentItem(QListWidgetItem *item) { diff --git a/src/gui/itemviews/qtablewidget.cpp b/src/gui/itemviews/qtablewidget.cpp index b04aea2..d44c11c 100644 --- a/src/gui/itemviews/qtablewidget.cpp +++ b/src/gui/itemviews/qtablewidget.cpp @@ -2115,8 +2115,8 @@ QTableWidgetItem *QTableWidget::currentItem() const /*! Sets the current item to \a item. - Depending on the current \l{QAbstractItemView::SelectionMode}{selection mode}, - the item may also be selected. + Unless the selection mode is \l{QAbstractItemView::}{NoSelection}, + the item is also be selected. \sa currentItem(), setCurrentCell() */ diff --git a/src/gui/itemviews/qtreewidget.cpp b/src/gui/itemviews/qtreewidget.cpp index b636284..8cc8d6c 100644 --- a/src/gui/itemviews/qtreewidget.cpp +++ b/src/gui/itemviews/qtreewidget.cpp @@ -2784,7 +2784,8 @@ int QTreeWidget::currentColumn() const /*! Sets the current \a item in the tree widget. - Depending on the current selection mode, the item may also be selected. + Unless the selection mode is \l{QAbstractItemView::}{NoSelection}, + the item is also be selected. \sa currentItem(), currentItemChanged() */ -- cgit v0.12