diff options
author | Martin Smith <msmith@trolltech.com> | 2009-12-18 14:13:49 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2010-01-06 16:01:08 (GMT) |
commit | e1c92f6d16c6e83783bf4dba722c0a0fc29f3393 (patch) | |
tree | f4844bd9eece502e03c0198379413ac297d0754f | |
parent | 41adc06db49e275c36a0efc2b4e35a7c462e39ab (diff) | |
download | Qt-e1c92f6d16c6e83783bf4dba722c0a0fc29f3393.zip Qt-e1c92f6d16c6e83783bf4dba722c0a0fc29f3393.tar.gz Qt-e1c92f6d16c6e83783bf4dba722c0a0fc29f3393.tar.bz2 |
doc: Added an explanatory \note about the table being sorted.
Task-number: QTBUG-5046
(cherry picked from commit 65a0c8cc6d2c13cfb2cef22e8a23f4e3050fde25)
-rw-r--r-- | src/gui/itemviews/qtableview.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/gui/itemviews/qtableview.cpp b/src/gui/itemviews/qtableview.cpp index e07f253..9ae98d3 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); |