diff options
author | Martin Smith <msmith@trolltech.com> | 2009-12-18 14:13:49 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2009-12-18 14:13:49 (GMT) |
commit | 65a0c8cc6d2c13cfb2cef22e8a23f4e3050fde25 (patch) | |
tree | edebe2a2ff8000d3725eb600716bbbd24800c810 /src/gui/itemviews | |
parent | e581386148a9615ef6c11eb3ae6735d0fa9668f6 (diff) | |
download | Qt-65a0c8cc6d2c13cfb2cef22e8a23f4e3050fde25.zip Qt-65a0c8cc6d2c13cfb2cef22e8a23f4e3050fde25.tar.gz Qt-65a0c8cc6d2c13cfb2cef22e8a23f4e3050fde25.tar.bz2 |
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.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/gui/itemviews/qtableview.cpp b/src/gui/itemviews/qtableview.cpp index d27e693..26f5a20 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); |