QSqlRelationalTableModel doesn't follow relations on the first column
authorHonglei Zhang <honglei.zhang@nokia.com>
Mon, 5 Dec 2011 13:05:16 +0000 (15:05 +0200)
committerHonglei Zhang <honglei.zhang@nokia.com>
Mon, 5 Dec 2011 13:05:16 +0000 (15:05 +0200)
commit147ea1d18482c1f64749db52c622dded075dc66c
tree9215849b568fe96ccda75d72579a7aae85f1b082
parent1f6ec34d46bc36ff9396e5e865af81cecf310cc3
QSqlRelationalTableModel doesn't follow relations on the first column

QSqlRelationalTableModel doesn't follow relations on the first column
of a table. The DisplayRole and the EditRole for indexes on column 0
are always the same. The bug is found in QSqlRelationalTableModel::data.

Task-number: QTBUG-20038
Reviewed-by: Charles Yin
src/sql/models/qsqlrelationaltablemodel.cpp
tests/auto/qsqlrelationaltablemodel/tst_qsqlrelationaltablemodel.cpp