diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2011-05-19 07:32:26 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2011-05-19 07:40:49 (GMT) |
commit | 12d4465ad9af5473d48a3abfe6b277f0881a3604 (patch) | |
tree | 4cd1132167b015e15884e3494b168881f66bc099 /tests/benchmarks/gui | |
parent | 38d04b8cd5a26564945b833450a104fe82d97e14 (diff) | |
download | Qt-12d4465ad9af5473d48a3abfe6b277f0881a3604.zip Qt-12d4465ad9af5473d48a3abfe6b277f0881a3604.tar.gz Qt-12d4465ad9af5473d48a3abfe6b277f0881a3604.tar.bz2 |
Fix qguimetatype benchmark for Symbian
QMetaType::QColorGroup requires QT3_SUPPORT, so skip that in builds
that do not include QT3_SUPPORT.
Task-number: QTBUG-19254
Reviewed-by: Sami Merila
Diffstat (limited to 'tests/benchmarks/gui')
-rw-r--r-- | tests/benchmarks/gui/kernel/qguimetatype/tst_qguimetatype.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/benchmarks/gui/kernel/qguimetatype/tst_qguimetatype.cpp b/tests/benchmarks/gui/kernel/qguimetatype/tst_qguimetatype.cpp index fd5132c..531943a 100644 --- a/tests/benchmarks/gui/kernel/qguimetatype/tst_qguimetatype.cpp +++ b/tests/benchmarks/gui/kernel/qguimetatype/tst_qguimetatype.cpp @@ -68,8 +68,12 @@ tst_QGuiMetaType::~tst_QGuiMetaType() void tst_QGuiMetaType::constructGuiType_data() { QTest::addColumn<int>("typeId"); - for (int i = QMetaType::FirstGuiType; i <= QMetaType::LastGuiType; ++i) + for (int i = QMetaType::FirstGuiType; i <= QMetaType::LastGuiType; ++i) { +#ifndef QT3_SUPPORT + if (i != 63) // QMetaType::QColorGroup (63) requires QT3_SUPPORT +#endif QTest::newRow(QMetaType::typeName(i)) << i; + } } // Tests how fast QMetaType can default-construct and destroy a Qt GUI |