summaryrefslogtreecommitdiffstats
path: root/src/sql
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2012-03-19 08:55:02 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-22 16:13:21 +0100
commitc7b9a60571ace1a555226c33a2dd5afbe6bfbcf4 (patch)
treee3c10ba8a36b494cf0dc3f69e933105d49fb0736 /src/sql
parent787da35eb84a19f9c2b8d59b7ab93e78dd5e7cfd (diff)
QSqlRTM: fix whitespace
Change-Id: I0ed9ab93657d35a0e8c74469f72c77fe1fc4c7c1 Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
Diffstat (limited to 'src/sql')
-rw-r--r--src/sql/models/qsqlrelationaltablemodel.cpp6
1 files 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(" = "));