summaryrefslogtreecommitdiffstats
path: root/src/sql
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-08-26 07:54:33 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-08-26 07:54:33 (GMT)
commit87136163dcd7ffb8759875bca2b4e559a32167cd (patch)
tree5c5467759ffdf69d5e62a052fb77fc64d5a54f45 /src/sql
parent0c70be512bfc40e8a2a09f60a66b7ecb114e748e (diff)
parent8f389d20bc01a355a6a1885b5bd1d30bd2ff0c71 (diff)
downloadQt-87136163dcd7ffb8759875bca2b4e559a32167cd.zip
Qt-87136163dcd7ffb8759875bca2b4e559a32167cd.tar.gz
Qt-87136163dcd7ffb8759875bca2b4e559a32167cd.tar.bz2
Merge remote-tracking branch 'mainline/4.8'
Diffstat (limited to 'src/sql')
-rw-r--r--src/sql/models/qsqlrelationaltablemodel.cpp28
1 files changed, 18 insertions, 10 deletions
diff --git a/src/sql/models/qsqlrelationaltablemodel.cpp b/src/sql/models/qsqlrelationaltablemodel.cpp
index 5b0406f..0edfaf4 100644
--- a/src/sql/models/qsqlrelationaltablemodel.cpp
+++ b/src/sql/models/qsqlrelationaltablemodel.cpp
@@ -710,24 +710,32 @@ void QSqlRelationalTableModel::clear()
}
-/*! \enum QSqlRelationalTableModel::JoinMode
+/*!
+ \enum QSqlRelationalTableModel::JoinMode
+ \since 4.8
- \value InnerJoin - Inner join mode, return rows when there is at least one match in both tables.
- \value LeftJoin - Left join mode, returns all rows from the left table (table_name1), even if there are no matches in the right table (table_name2).
+ This enum specifies the type of mode to use when joining two tables.
- \see QSqlRelationalTableModel::setJoinMode
- \since 4.8
+ \value InnerJoin Inner join mode, return rows when there is at least one
+ match in both tables.
+ \value LeftJoin Left join mode, returns all rows from the left table
+ (table_name1), even if there are no matches in the right
+ table (table_name2).
+
+ \sa QSqlRelationalTableModel::setJoinMode()
*/
/*!
- Sets the SQL join mode to show or hide rows with NULL foreign keys.
- In InnerJoin mode (the default) these rows will not be showed: use the
+ \since 4.8
+ Sets the SQL join mode to the value given by \a joinMode to show or hide
+ rows with NULL foreign keys.
+
+ In InnerJoin mode (the default) these rows will not be shown; use the
LeftJoin mode if you want to show them.
- \see QSqlRelationalTableModel::JoinMode
- \since 4.8
+ \sa QSqlRelationalTableModel::JoinMode
*/
-void QSqlRelationalTableModel::setJoinMode( QSqlRelationalTableModel::JoinMode joinMode )
+void QSqlRelationalTableModel::setJoinMode(QSqlRelationalTableModel::JoinMode joinMode)
{
Q_D(QSqlRelationalTableModel);
d->joinMode = joinMode;