summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2009-11-09 14:10:20 (GMT)
committerJoerg Bornemann <joerg.bornemann@nokia.com>2009-11-09 14:13:35 (GMT)
commitfff4ca8924e92c30ae62c0c8c902b2d42d788653 (patch)
tree05b634e5b32bc7ddaf757955cf053227e46215ee /tests
parent9ca20dbec233aa3f8b8a720f34b843c3718519d6 (diff)
downloadQt-fff4ca8924e92c30ae62c0c8c902b2d42d788653.zip
Qt-fff4ca8924e92c30ae62c0c8c902b2d42d788653.tar.gz
Qt-fff4ca8924e92c30ae62c0c8c902b2d42d788653.tar.bz2
tst_qlistwidget compile fix for Qt without RTTI
Reviewed-by: thartman
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qlistwidget/tst_qlistwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qlistwidget/tst_qlistwidget.cpp b/tests/auto/qlistwidget/tst_qlistwidget.cpp
index 5c6ed54..cb8f1e9 100644
--- a/tests/auto/qlistwidget/tst_qlistwidget.cpp
+++ b/tests/auto/qlistwidget/tst_qlistwidget.cpp
@@ -879,7 +879,7 @@ void tst_QListWidget::moveItemsPriv()
for (int r = 0; r < rowCount; ++r)
new QListWidgetItem(QString::number(r), testWidget);
- QListModel *model = dynamic_cast<QListModel *>(testWidget->model());
+ QListModel *model = qobject_cast<QListModel *>(testWidget->model());
QVERIFY(model);
QSignalSpy beginMoveSpy(model, SIGNAL(rowsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int)));
QSignalSpy movedSpy(model, SIGNAL(rowsMoved(QModelIndex,int,int,QModelIndex,int)));