diff options
author | David Boddie <david.boddie@nokia.com> | 2011-05-09 19:08:59 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-05-11 15:36:00 (GMT) |
commit | 95a06f849d3d95e1caabfad65bd7aca5efe9ef15 (patch) | |
tree | 2188bc6c127930641cef69b00d7a554e9d444a15 /src | |
parent | 0d0165e5e2eac13ae298739d9b5baed1a5a24358 (diff) | |
download | Qt-95a06f849d3d95e1caabfad65bd7aca5efe9ef15.zip Qt-95a06f849d3d95e1caabfad65bd7aca5efe9ef15.tar.gz Qt-95a06f849d3d95e1caabfad65bd7aca5efe9ef15.tar.bz2 |
Doc: Documented the value returned when no field can be found.
Task-number: QTBUG-19115
Diffstat (limited to 'src')
-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 99b516a..2f16f94 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 { |