qt5base-lts/tests/auto/widgets
Giuseppe D'Angelo cada1fb4ef Add QComboBox::currentData
Convenience function that returns user data for the current item,
analogous to currentText().

This avoids to having to write the cumbersome

  QVariant variant = comboBox->itemData(comboBox->currentIndex());

(It's quite common to put strings as text and the corresponding
enum values as user data.)

Change-Id: I8c7632c647c5583d18e4e22703aeb4447d73162d
Reviewed-by: David Faure <david.faure@kdab.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
2013-05-27 15:19:41 +02:00
..
dialogs Merge remote-tracking branch 'origin/stable' into dev 2013-05-23 21:27:07 +02:00
effects QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
graphicsview Merge remote-tracking branch 'origin/stable' into dev 2013-05-23 21:27:07 +02:00
itemviews Merge remote-tracking branch 'origin/stable' into dev 2013-05-23 21:27:07 +02:00
kernel test: Remove XFAIL from tst_qwidget 2013-05-13 13:29:48 +02:00
styles Fix tst_qstyle autotest build for WEC7. 2013-04-17 19:49:02 +02:00
util Stabilize tst_qcompleter. 2013-04-05 11:28:47 +02:00
widgets Add QComboBox::currentData 2013-05-27 15:19:41 +02:00
widgets.pro Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00