make currentText the USER property for QComboBox
authorMark Brand <mabrand@mabrand.nl>
Wed, 18 Jul 2012 20:02:43 +0000 (22:02 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 10 Aug 2012 19:58:15 +0000 (21:58 +0200)
commit816c5540179362500dfc175b77f05abf3ef25233
tree5af37ceda1d8e5f79c96f4c935b803f113959304
parent79a7e6f23b9412d281f2c4957be39b656f78fe1e
make currentText the USER property for QComboBox

QItemDelegate takes the USER property as the value to be set using
model->setData(). The text is what is expected.

follow-up to b1b87a73012342dc1619a8e907ea9954d59ca564 which in Qt 4.8.0
broke the interaction between QComboBox and QItemDelegate used by
QDataWidgetMapper and item views.

Task-number: QTBUG-26501
Change-Id: I005a0a6af5265ee22baf417957e520992d16d6e1
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/widgets/widgets/qcombobox.h