diff options
author | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2009-12-07 12:40:14 (GMT) |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2009-12-07 14:18:31 (GMT) |
commit | 9a45e1853374c735dc08bf2e23b9d820900b1ccb (patch) | |
tree | 905311431b7985469bcf65e29667674a9510a6bf /tests | |
parent | fb78a402b512b017c850e7410745c4d20da04a7c (diff) | |
download | Qt-9a45e1853374c735dc08bf2e23b9d820900b1ccb.zip Qt-9a45e1853374c735dc08bf2e23b9d820900b1ccb.tar.gz Qt-9a45e1853374c735dc08bf2e23b9d820900b1ccb.tar.bz2 |
Assert in designer while drag & dropping items from a QListWidget
Did not honour returned value from beginMoveRows(). Auto-test included.
Reviewed-by: leo
Task-number: QTBUG-6532
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qlistwidget/tst_qlistwidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qlistwidget/tst_qlistwidget.cpp b/tests/auto/qlistwidget/tst_qlistwidget.cpp index cb8f1e9..863c308 100644 --- a/tests/auto/qlistwidget/tst_qlistwidget.cpp +++ b/tests/auto/qlistwidget/tst_qlistwidget.cpp @@ -867,6 +867,7 @@ void tst_QListWidget::moveItemsPriv_data() QTest::newRow("Same place") << 5 << 2 << 2 << false; QTest::newRow("Up") << 5 << 4 << 2 << true; QTest::newRow("Down") << 5 << 2 << 4 << true; + QTest::newRow("QTBUG-6532 assert") << 5 << 0 << 1 << false; } void tst_QListWidget::moveItemsPriv() |