From e78e7d325b85a96851615ae0199d3465b5d394c3 Mon Sep 17 00:00:00 2001 From: Kevin Funk Date: Mon, 10 Sep 2012 11:08:37 +0200 Subject: Fix build of tests/ on Windows CE Remove some subprojects that have missing dependencies or use API that is non-available on Windows CE. Change-Id: Iad7118b95a691a433c3f798d56a6a069e5e41917 Reviewed-by: Qt Doc Bot Reviewed-by: Andreas Holzammer Reviewed-by: Friedemann Kleint --- tests/auto/widgets/styles/styles.pro | 3 +++ tests/manual/manual.pro | 5 +++++ tests/manual/qgraphicsitemgroup/customitem.cpp | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/auto/widgets/styles/styles.pro b/tests/auto/widgets/styles/styles.pro index 7e931582db..1791279b72 100644 --- a/tests/auto/widgets/styles/styles.pro +++ b/tests/auto/widgets/styles/styles.pro @@ -11,3 +11,6 @@ SUBDIRS=\ # This test can only be run on Mac OS: !mac:SUBDIRS -= \ qmacstyle \ + +!contains( styles, motif ):SUBDIRS -= \ + qstylesheetstyle \ diff --git a/tests/manual/manual.pro b/tests/manual/manual.pro index e4e99ea30f..42f753a553 100644 --- a/tests/manual/manual.pro +++ b/tests/manual/manual.pro @@ -33,3 +33,8 @@ windowmodality \ widgetgrab !contains(QT_CONFIG, openssl):!contains(QT_CONFIG, openssl-linked):SUBDIRS -= qssloptions + +# disable some tests on wince because of missing dependencies +wince*:SUBDIRS -= \ + lance windowmodality \ + network_remote_stresstest network_stresstest diff --git a/tests/manual/qgraphicsitemgroup/customitem.cpp b/tests/manual/qgraphicsitemgroup/customitem.cpp index eab218e9a0..f0bc74db68 100644 --- a/tests/manual/qgraphicsitemgroup/customitem.cpp +++ b/tests/manual/qgraphicsitemgroup/customitem.cpp @@ -51,7 +51,7 @@ QList CustomScene::selectedCustomGroups() const QList groups; foreach (QGraphicsItem *item, all) { - CustomGroup* group = dynamic_cast(item); + CustomGroup* group = qgraphicsitem_cast(item); if (group) groups.append(group); } @@ -65,7 +65,7 @@ QList CustomScene::selectedCustomItems() const QList items; foreach (QGraphicsItem *item, all) { - CustomItem* citem = dynamic_cast(item); + CustomItem* citem = qgraphicsitem_cast(item); if (citem) items.append(citem); } -- cgit v1.2.3