qt5base-lts/tests/auto/sql/models
Andy Shaw b92db8a4ad Show the display role inside the editor for the relation in a QComboBox
When a QComboBox is used as the editor for a relation inside a view then
it could end up showing the contents of the EditRole. This would be the
field which is used to represent the entry as opposed to the DisplayRole
which is what the user would expect to see is.

Therefore, setEditorData() is overridden to ensure that it is showing
the right data to the user. When the model gets updated, it will take the
corresponding EditRole value as before to ensure it is updated correctly.

Task-number: QTBUG-59632
Change-Id: Ibbccc3e9477de1cdefb654051b97dd111df36382
Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io>
2018-05-29 22:08:28 +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 psql: Add expected failures where the table name is case sensitive 2018-02-21 07:07:26 +00:00
models.pro add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00