qt6-bb10/tests/auto/widgets/itemviews
Mark Brand 84787d82ee QComboBox: fix use in QDataWidgetMapper/QItemDelegate
QItemDelegate and QDataWidgetMapper use the WRITE method on the USER
property to set a value in a widget. This did not work for QComboBox
whose USER property currentText lacked a WRITE method.

This change adds the missing setter and flags it as the WRITE method.

The setter setCurrentText() simply calls setEditText() if the combo
box is editable. Otherwise, if there is a matching text in the list,
currentIndex is set to the corresponding index.

Test included.

Follow-up to 816c554017 which restored
currentText as the USER property.

Task-number: QTBUG-26501
Change-Id: I5f2f999e60b09728ca03ead4e28fe36d1f3ee189
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: David Faure <david.faure@kdab.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
2012-10-26 15:24:00 +02:00
..
qabstractitemview Fix segfault when delegates change properties on editors. 2012-10-04 12:15:49 +02:00
qcolumnview normalise signal/slot signatures [QtWidgets tests] 2012-10-19 00:44:54 +02:00
qdatawidgetmapper QComboBox: fix use in QDataWidgetMapper/QItemDelegate 2012-10-26 15:24:00 +02:00
qdirmodel Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qfileiconprovider Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qheaderview normalise signal/slot signatures [QtWidgets tests] 2012-10-19 00:44:54 +02:00
qitemdelegate Make sure uints remain uints when editing in itemviews. 2012-10-19 00:44:54 +02:00
qitemeditorfactory Make sure uints remain uints when editing in itemviews. 2012-10-19 00:44:54 +02:00
qitemview Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qlistview Remove Cleanlooks and Plastique 2012-10-22 19:36:43 +02:00
qlistwidget normalise signal/slot signatures [QtWidgets tests] 2012-10-19 00:44:54 +02:00
qtableview Implement viewOptions logic in QTableViewPrivate. 2012-10-25 14:10:04 +02:00
qtablewidget normalise signal/slot signatures [QtWidgets tests] 2012-10-19 00:44:54 +02:00
qtreeview normalise signal/slot signatures [QtWidgets tests] 2012-10-19 00:44:54 +02:00
qtreewidget normalise signal/slot signatures [QtWidgets tests] 2012-10-19 00:44:54 +02:00
qtreewidgetitemiterator Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
itemviews.pro Move QStandardItem/QStandardItemModel to QtGui 2012-06-29 22:42:19 +02:00