summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2009-06-09 04:21:34 (GMT)
committerRohan McGovern <rohan.mcgovern@nokia.com>2009-06-09 04:24:11 (GMT)
commitebbfbe432671d899fb08ac8775e6e36d86f1c010 (patch)
tree696db91332a068fbdcbb195973520ed6aded1d8a /tests
parentd6d586d4b05f416d89fcaf59c863245f1cb7d9ae (diff)
downloadQt-ebbfbe432671d899fb08ac8775e6e36d86f1c010.zip
Qt-ebbfbe432671d899fb08ac8775e6e36d86f1c010.tar.gz
Qt-ebbfbe432671d899fb08ac8775e6e36d86f1c010.tar.bz2
Fixed crash in tst_qcombobox when Qt is built in debug mode.
"QTableWidget::setModel() - Changing the model of the QTableWidget is not allowed."
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qcombobox/tst_qcombobox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qcombobox/tst_qcombobox.cpp b/tests/auto/qcombobox/tst_qcombobox.cpp
index 816b2e8..5321348 100644
--- a/tests/auto/qcombobox/tst_qcombobox.cpp
+++ b/tests/auto/qcombobox/tst_qcombobox.cpp
@@ -2197,8 +2197,8 @@ void tst_QComboBox::noScrollbar()
{
QTableWidget *table = new QTableWidget(2,2);
QComboBox comboBox;
- comboBox.setView(table);
comboBox.setModel(table->model());
+ comboBox.setView(table);
comboBox.show();
QTest::qWait(100);
comboBox.resize(200, comboBox.height());