qt5base-lts/tests/auto/sql/models
Andy Shaw 28702cb239 Initialize the QSqlQuery to be invalid when creating a sql model
When QSqlQueryModel or QSqlTableModel is created it will create a
QSqlQuery which defaults to using the default QSqlDatabase connection.

If this connection belongs to another thread then it will throw a
warning as this is not safe to use. Since the QSqlQuery is always
recreated when a query is set, the instance which is a member of
the class can effectively be invalid until a new one is set.

Task-number: QTBUG-69213
Change-Id: I68a5dd59fe62788f531d59a0680da11b118ee383
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2018-08-28 16:10:30 +00:00
..
qsqlquerymodel QSql tests: Remove Windows CE and clean up code. 2016-03-10 15:07:02 +00:00
qsqlrelationaldelegate Show the display role inside the editor for the relation in a QComboBox 2018-05-29 22:08:28 +00:00
qsqlrelationaltablemodel psql: Add expected failures where the table name is case sensitive 2018-02-21 07:07:26 +00:00
qsqltablemodel Initialize the QSqlQuery to be invalid when creating a sql model 2018-08-28 16:10:30 +00:00
models.pro