diff options
author | David Boddie <david.boddie@nokia.com> | 2011-05-09 21:08:59 +0200 |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-05-23 14:24:07 +0200 |
commit | 9235701d7207c553c8aaa4359ae17f27d3f422a5 (patch) | |
tree | ec34faa84d7d26434d57f745562cfbdebd84f69d /src/sql | |
parent | 0cbcc61ef35b9bce1d65d048853c79004b755b87 (diff) |
Doc: Documented the value returned when no field can be found.
Task-number: QTBUG-19115
Diffstat (limited to 'src/sql')
-rw-r--r-- | src/sql/models/qsqltablemodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sql/models/qsqltablemodel.cpp b/src/sql/models/qsqltablemodel.cpp index 99b516a05c..2f16f942ad 100644 --- a/src/sql/models/qsqltablemodel.cpp +++ b/src/sql/models/qsqltablemodel.cpp @@ -1006,7 +1006,8 @@ QString QSqlTableModel::orderByClause() const } /*! - Returns the index of the field \a fieldName. + Returns the index of the field \a fieldName, or -1 if no corresponding field + exists in the model. */ int QSqlTableModel::fieldIndex(const QString &fieldName) const { |