diff options
author | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2011-07-05 18:30:35 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-07-06 12:03:30 +0200 |
commit | f306d18fe6555a9a5c60560745773b0bf5685ec3 (patch) | |
tree | 9f9604b495a535ef256a96c0f33ea5c99033a032 /src/sql/kernel/qsqlindex.cpp | |
parent | ceceb3796fbfdcd944fc7da7c8b2198fca69cb44 (diff) |
Remove QT3_SUPPORT from qsql, qxml
Change-Id: Iab36ef60de2f0201efa4eb86d8ed5e514d6244fb
Reviewed-on: http://codereview.qt.nokia.com/1188
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/sql/kernel/qsqlindex.cpp')
-rw-r--r-- | src/sql/kernel/qsqlindex.cpp | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/sql/kernel/qsqlindex.cpp b/src/sql/kernel/qsqlindex.cpp index 33e3c1ce34..764e93a678 100644 --- a/src/sql/kernel/qsqlindex.cpp +++ b/src/sql/kernel/qsqlindex.cpp @@ -164,60 +164,6 @@ void QSqlIndex::setDescending(int i, bool desc) sorts[i] = desc; } -#ifdef QT3_SUPPORT - -/*! - Returns a comma-separated list of all the index's field names as a - string. This string is suitable, for example, for generating a - SQL SELECT statement. Only generated fields are included in the - list (see \l{isGenerated()}). If a \a prefix is specified, e.g. a - table name, it is prepended before all field names in the form: - - "\a{prefix}.<fieldname>" - - If \a sep is specified, each field is separated by \a sep. If \a - verbose is true (the default), each field contains a suffix - indicating an ASCending or DESCending sort order. -*/ - -QString QSqlIndex::toString(const QString& prefix, const QString& sep, bool verbose) const -{ - QString s; - bool comma = false; - for (int i = 0; i < count(); ++i) { - if(comma) - s += sep + QLatin1Char(' '); - s += createField(i, prefix, verbose); - comma = true; - } - return s; -} - -/*! - Returns a list of all the index's field names. Only generated - fields are included in the list (see \l{isGenerated()}). If a \a - prefix is specified, e.g. a table name, all fields are prefixed in - the form: - - "\a{prefix}.<fieldname>" - - If \a verbose is true (the default), each field contains a suffix - indicating an ASCending or DESCending sort order. - - Note that if you want to iterate over the list, you should iterate - over a copy, e.g. - \snippet doc/src/snippets/code/src_sql_kernel_qsqlindex.cpp 0 - -*/ -QStringList QSqlIndex::toStringList(const QString& prefix, bool verbose) const -{ - QStringList s; - for (int i = 0; i < count(); ++i) - s += createField(i, prefix, verbose); - return s; -} -#endif - /*! \internal Creates a string representing the field number \a i using prefix \a |