summaryrefslogtreecommitdiffstats
path: root/tests/auto/qcombobox
diff options
context:
space:
mode:
authorFrans Englich <frans.englich@nokia.com>2009-08-19 16:55:47 +0200
committerFrans Englich <frans.englich@nokia.com>2009-08-19 16:55:47 +0200
commitbf8de28190bb0ac5cbcde550fdfb86f42c504f00 (patch)
treeddacb3e0c95818039d22645fa7cf54cf4f0421dd /tests/auto/qcombobox
parentaf6d0ac59424e75ee840b668f193a1d5973efe07 (diff)
Ifdef compiler workaround.
Addresses review comment.
Diffstat (limited to 'tests/auto/qcombobox')
-rw-r--r--tests/auto/qcombobox/tst_qcombobox.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/tests/auto/qcombobox/tst_qcombobox.cpp b/tests/auto/qcombobox/tst_qcombobox.cpp
index c364129caa..970083973d 100644
--- a/tests/auto/qcombobox/tst_qcombobox.cpp
+++ b/tests/auto/qcombobox/tst_qcombobox.cpp
@@ -2260,7 +2260,11 @@ void tst_QComboBox::setItemDelegate()
QComboBox comboBox;
QStyledItemDelegate *itemDelegate = new QStyledItemDelegate;
comboBox.setItemDelegate(itemDelegate);
- QCOMPARE(static_cast<QStyledItemDelegate*>(comboBox.itemDelegate()), itemDelegate);
+ QCOMPARE(
+#ifdef Q_CC_MWERKS
+ static_cast<QStyledItemDelegate *>
+#endif
+ (comboBox.itemDelegate()), itemDelegate);
}
void tst_QComboBox::task253944_itemDelegateIsReset()
@@ -2270,10 +2274,18 @@ void tst_QComboBox::task253944_itemDelegateIsReset()
comboBox.setItemDelegate(itemDelegate);
comboBox.setEditable(true);
- QCOMPARE(static_cast<QStyledItemDelegate*>(comboBox.itemDelegate()), itemDelegate);
+ QCOMPARE(
+#ifdef Q_CC_MWERKS
+ static_cast<QStyledItemDelegate *>
+#endif
+ (comboBox.itemDelegate()), itemDelegate);
comboBox.setStyleSheet("QComboBox { border: 1px solid gray; }");
- QCOMPARE(static_cast<QStyledItemDelegate*>(comboBox.itemDelegate()), itemDelegate);
+ QCOMPARE(
+#ifdef Q_CC_MWERKS
+ static_cast<QStyledItemDelegate *>
+#endif
+ (comboBox.itemDelegate()), itemDelegate);
}