Don't build empty tests.

The qgraphicswidget and qgraphicsproxywidget tests are empty if Qt is
built without the cleanlooks style, so don't build the tests in that
case.

Change-Id: I2308e723a9b0abcc3e95b32a562fcb02afe0444d
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
Jason McDonald 2011-10-12 12:36:25 +10:00 committed by Qt by Nokia
parent a40ebefcd3
commit 25a62d7d6b
3 changed files with 5 additions and 12 deletions

View File

@ -153,6 +153,11 @@ irix-*:SUBDIRS -= qitemview
qwsinputmethod \
qwswindowsystem \
# These tests require the cleanlooks style
!contains(styles, cleanlooks):SUBDIRS -= \
qgraphicswidget \
qgraphicsproxywidget \
win32:SUBDIRS -= qtextpiecetable
!contains(QT_CONFIG, private_tests): SUBDIRS -= \

View File

@ -59,8 +59,6 @@ static void sendMouseMove(QWidget *widget, const QPoint &point, Qt::MouseButton
QApplication::sendEvent(widget, &event);
}
#ifndef QT_NO_STYLE_CLEANLOOKS
/*
Notes:
@ -3650,7 +3648,3 @@ void tst_QGraphicsProxyWidget::QTBUG_6986_sendMouseEventToAlienWidget()
QTEST_MAIN(tst_QGraphicsProxyWidget)
#include "tst_qgraphicsproxywidget.moc"
#else // QT_NO_STYLE_CLEANLOOKS
QTEST_NOOP_MAIN
#endif

View File

@ -81,7 +81,6 @@ protected:
QEvent::Type spied;
};
#ifndef QT_NO_STYLE_CLEANLOOKS
class tst_QGraphicsWidget : public QObject {
Q_OBJECT
@ -3361,8 +3360,3 @@ void tst_QGraphicsWidget::QT_BUG_12056_tabFocusFirstUnsetWhenRemovingItems()
QTEST_MAIN(tst_QGraphicsWidget)
#include "tst_qgraphicswidget.moc"
#else // QT_NO_STYLE_CLEANLOOKS
QTEST_NOOP_MAIN
#endif