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 <qt_docbot@qt-project.org>
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
bb10
Kevin Funk 2012-09-10 11:08:37 +02:00 committed by Qt by Nokia
parent 1ea00124f7
commit e78e7d325b
3 changed files with 10 additions and 2 deletions

View File

@ -11,3 +11,6 @@ SUBDIRS=\
# This test can only be run on Mac OS:
!mac:SUBDIRS -= \
qmacstyle \
!contains( styles, motif ):SUBDIRS -= \
qstylesheetstyle \

View File

@ -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

View File

@ -51,7 +51,7 @@ QList<CustomGroup*> CustomScene::selectedCustomGroups() const
QList<CustomGroup*> groups;
foreach (QGraphicsItem *item, all) {
CustomGroup* group = dynamic_cast<CustomGroup*>(item);
CustomGroup* group = qgraphicsitem_cast<CustomGroup*>(item);
if (group)
groups.append(group);
}
@ -65,7 +65,7 @@ QList<CustomItem*> CustomScene::selectedCustomItems() const
QList<CustomItem*> items;
foreach (QGraphicsItem *item, all) {
CustomItem* citem = dynamic_cast<CustomItem*>(item);
CustomItem* citem = qgraphicsitem_cast<CustomItem*>(item);
if (citem)
items.append(citem);
}