diff options
author | Janne Anttila <janne.anttila@digia.com> | 2009-06-03 08:07:16 (GMT) |
---|---|---|
committer | Janne Anttila <janne.anttila@digia.com> | 2009-06-03 08:07:16 (GMT) |
commit | 0f0f50aee7f3e5c647edda2ed3e7cd00deeb58ad (patch) | |
tree | 62943c75c0d8e02bc54024688d86ffa063021028 /tests | |
parent | 544e05eda10c6840d12c86244b1f68be50a00658 (diff) | |
download | Qt-0f0f50aee7f3e5c647edda2ed3e7cd00deeb58ad.zip Qt-0f0f50aee7f3e5c647edda2ed3e7cd00deeb58ad.tar.gz Qt-0f0f50aee7f3e5c647edda2ed3e7cd00deeb58ad.tar.bz2 |
Fixed tst_qcombobox compiler errors for Symbian WINSCW target.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qcombobox/tst_qcombobox.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qcombobox/tst_qcombobox.cpp b/tests/auto/qcombobox/tst_qcombobox.cpp index 13ffd67..4973d4f 100644 --- a/tests/auto/qcombobox/tst_qcombobox.cpp +++ b/tests/auto/qcombobox/tst_qcombobox.cpp @@ -2219,7 +2219,7 @@ void tst_QComboBox::setItemDelegate() QComboBox comboBox; QStyledItemDelegate *itemDelegate = new QStyledItemDelegate; comboBox.setItemDelegate(itemDelegate); - QCOMPARE(comboBox.itemDelegate(), itemDelegate); + QCOMPARE(static_cast<QStyledItemDelegate*>(comboBox.itemDelegate()), itemDelegate); } void tst_QComboBox::task253944_itemDelegateIsReset() @@ -2229,10 +2229,10 @@ void tst_QComboBox::task253944_itemDelegateIsReset() comboBox.setItemDelegate(itemDelegate); comboBox.setEditable(true); - QCOMPARE(comboBox.itemDelegate(), itemDelegate); + QCOMPARE(static_cast<QStyledItemDelegate*>(comboBox.itemDelegate()), itemDelegate); comboBox.setStyleSheet("QComboBox { border: 1px solid gray; }"); - QCOMPARE(comboBox.itemDelegate(), itemDelegate); + QCOMPARE(static_cast<QStyledItemDelegate*>(comboBox.itemDelegate()), itemDelegate); } QTEST_MAIN(tst_QComboBox) |