From 9235701d7207c553c8aaa4359ae17f27d3f422a5 Mon Sep 17 00:00:00 2001 From: David Boddie Date: Mon, 9 May 2011 21:08:59 +0200 Subject: Doc: Documented the value returned when no field can be found. Task-number: QTBUG-19115 --- src/sql/models/qsqltablemodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3