summaryrefslogtreecommitdiff
path: root/src/gui/itemviews
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-12-18 15:13:49 +0100
committerMartin Smith <msmith@trolltech.com>2009-12-18 15:13:49 +0100
commit65a0c8cc6d2c13cfb2cef22e8a23f4e3050fde25 (patch)
treeedebe2a2ff8000d3725eb600716bbbd24800c810 /src/gui/itemviews
parente581386148a9615ef6c11eb3ae6735d0fa9668f6 (diff)
downloadqt4-tools-65a0c8cc6d2c13cfb2cef22e8a23f4e3050fde25.tar.gz
doc: Added an explanatory \note about the table being sorted.
Task-number: QTBUG-5046
Diffstat (limited to 'src/gui/itemviews')
-rw-r--r--src/gui/itemviews/qtableview.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/gui/itemviews/qtableview.cpp b/src/gui/itemviews/qtableview.cpp
index d27e693caf..26f5a20d01 100644
--- a/src/gui/itemviews/qtableview.cpp
+++ b/src/gui/itemviews/qtableview.cpp
@@ -2359,12 +2359,22 @@ void QTableView::setColumnHidden(int column, bool hide)
\property QTableView::sortingEnabled
\brief whether sorting is enabled
- If this property is true, sorting is enabled for the table; if the
- property is false, sorting is not enabled. The default value is false.
+ If this property is true, sorting is enabled for the table. If
+ this property is false, sorting is not enabled. The default value
+ is false.
+
+ \note. Setting the property to true with setSortingEnabled()
+ immediately triggers a call to sortByColumn() with the current
+ sort section and order.
\sa sortByColumn()
*/
+/*!
+ If \a enabled true enables sorting for the table and immediately
+ trigger a call to sortByColumn() with the current sort section and
+ order
+ */
void QTableView::setSortingEnabled(bool enable)
{
Q_D(QTableView);