diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2009-11-09 14:10:20 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-11-11 17:21:22 (GMT) |
commit | 80b476b07ee01ed658cbe7ceb4461eee1ec22e96 (patch) | |
tree | 864bcb440dd8a4913059a1b27112230efcf5dbda /tests | |
parent | 55b4ab13357e55c2543ce671e4366d9f4e081aca (diff) | |
download | Qt-80b476b07ee01ed658cbe7ceb4461eee1ec22e96.zip Qt-80b476b07ee01ed658cbe7ceb4461eee1ec22e96.tar.gz Qt-80b476b07ee01ed658cbe7ceb4461eee1ec22e96.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.cpp | 2 |
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))); |