diff options
author | Geir Vattekar <geir.vattekar@nokia.com> | 2011-02-17 16:49:58 (GMT) |
---|---|---|
committer | Geir Vattekar <geir.vattekar@nokia.com> | 2011-02-17 16:49:58 (GMT) |
commit | cc08d7e5d9f952fd78406c73d59752f9842c8ca6 (patch) | |
tree | 546f2c31a3f4682d72760c0351377ce5c4f8dbb6 | |
parent | b573f48bf8b157b0793ba70f156a46777a2a62bd (diff) | |
download | Qt-cc08d7e5d9f952fd78406c73d59752f9842c8ca6.zip Qt-cc08d7e5d9f952fd78406c73d59752f9842c8ca6.tar.gz Qt-cc08d7e5d9f952fd78406c73d59752f9842c8ca6.tar.bz2 |
Doc: itemAt for QTreeWidget/QListWidget are relative to the viewport
Task-number: QTBUG-17516
-rw-r--r-- | src/gui/itemviews/qlistwidget.cpp | 7 | ||||
-rw-r--r-- | src/gui/itemviews/qtreewidget.cpp | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/gui/itemviews/qlistwidget.cpp b/src/gui/itemviews/qlistwidget.cpp index 94e3b76..61a935f 100644 --- a/src/gui/itemviews/qlistwidget.cpp +++ b/src/gui/itemviews/qlistwidget.cpp @@ -1500,7 +1500,9 @@ void QListWidget::setCurrentRow(int row, QItemSelectionModel::SelectionFlags com } /*! - Returns a pointer to the item at the coordinates \a p. + Returns a pointer to the item at the coordinates \a p. The coordinates + are relative to the list widget's \l{QAbstractScrollArea::}{viewport()}. + */ QListWidgetItem *QListWidget::itemAt(const QPoint &p) const { @@ -1514,6 +1516,9 @@ QListWidgetItem *QListWidget::itemAt(const QPoint &p) const \overload Returns a pointer to the item at the coordinates (\a x, \a y). + The coordinates are relative to the list widget's + \l{QAbstractScrollArea::}{viewport()}. + */ diff --git a/src/gui/itemviews/qtreewidget.cpp b/src/gui/itemviews/qtreewidget.cpp index 4db29d6..2ea9a43 100644 --- a/src/gui/itemviews/qtreewidget.cpp +++ b/src/gui/itemviews/qtreewidget.cpp @@ -2830,7 +2830,8 @@ void QTreeWidget::setCurrentItem(QTreeWidgetItem *item, int column, /*! - Returns a pointer to the item at the coordinates \a p. + Returns a pointer to the item at the coordinates \a p. The coordinates + are relative to the tree widget's \l{QAbstractScrollArea::}{viewport()}. \sa visualItemRect() */ @@ -2844,7 +2845,8 @@ QTreeWidgetItem *QTreeWidget::itemAt(const QPoint &p) const \fn QTreeWidgetItem *QTreeWidget::itemAt(int x, int y) const \overload - Returns a pointer to the item at the coordinates (\a x, \a y). + Returns a pointer to the item at the coordinates (\a x, \a y). The coordinates + are relative to the tree widget's \l{QAbstractScrollArea::}{viewport()}. */ /*! |