From c7b9a60571ace1a555226c33a2dd5afbe6bfbcf4 Mon Sep 17 00:00:00 2001 From: Mark Brand Date: Mon, 19 Mar 2012 08:55:02 +0100 Subject: [PATCH] QSqlRTM: fix whitespace Change-Id: I0ed9ab93657d35a0e8c74469f72c77fe1fc4c7c1 Reviewed-by: Honglei Zhang --- src/sql/models/qsqlrelationaltablemodel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sql/models/qsqlrelationaltablemodel.cpp b/src/sql/models/qsqlrelationaltablemodel.cpp index 3a521deea2..6744e9d55b 100644 --- a/src/sql/models/qsqlrelationaltablemodel.cpp +++ b/src/sql/models/qsqlrelationaltablemodel.cpp @@ -124,7 +124,7 @@ class QRelatedTableModel; struct QRelation { public: - QRelation(): model(0),m_parent(0),m_dictInitialized(false){} + QRelation(): model(0), m_parent(0), m_dictInitialized(false) {} void init(QSqlRelationalTableModel *parent, const QSqlRelation &relation); void populateModel(); @@ -584,7 +584,7 @@ QString QSqlRelationalTableModel::selectStatement() const QString relTableAlias = QString::fromLatin1("relTblAl_%1").arg(i); if (!fList.isEmpty()) fList.append(QLatin1String(", ")); - fList.append(d->relationField(relTableAlias,relation.displayColumn())); + fList.append(d->relationField(relTableAlias, relation.displayColumn())); // If there are duplicate field names they must be aliased if (fieldNames.value(fieldList[i]) > 1) { @@ -602,7 +602,7 @@ QString QSqlRelationalTableModel::selectStatement() const // this needs fixing!! the below if is borken. // Use LeftJoin mode if you want correct behavior tables.append(relation.tableName().append(QLatin1Char(' ')).append(relTableAlias)); - if(!where.isEmpty()) + if (!where.isEmpty()) where.append(QLatin1String(" AND ")); where.append(d->relationField(tableName(), d->db.driver()->escapeIdentifier(rec.fieldName(i), QSqlDriver::FieldName))); where.append(QLatin1String(" = "));