summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-18 10:25:14 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-18 10:35:49 (GMT)
commit6bd75e56853acce0b9d9fcc6fc162c546d217ab0 (patch)
tree49bfea660a6fccc05e656886af2489b08b57b214 /tests
parentd01cc3cfe24394159b6a0d724ab6d8d59912365a (diff)
downloadQt-6bd75e56853acce0b9d9fcc6fc162c546d217ab0.zip
Qt-6bd75e56853acce0b9d9fcc6fc162c546d217ab0.tar.gz
Qt-6bd75e56853acce0b9d9fcc6fc162c546d217ab0.tar.bz2
Only ignore the addChildLayoutItem warning in debug builds.
We only output that message in debug builds....
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp b/tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp
index c2f0171..464e23a 100644
--- a/tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp
+++ b/tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp
@@ -551,9 +551,10 @@ void TestGraphicsAnchorLayout::testSpecialCases()
{
// One widget, setLayout before defining layouts
{
+#ifdef QT_DEBUG
QTest::ignoreMessage(QtWarningMsg, "QGraphicsLayout::addChildLayoutItem: QGraphicsWidget \"\""
" in wrong parent; moved to correct parent");
-
+#endif
QGraphicsWidget *widget = new QGraphicsWidget;
TheAnchorLayout *layout = new TheAnchorLayout();
widget->setLayout(layout);
@@ -572,8 +573,10 @@ void TestGraphicsAnchorLayout::testSpecialCases()
// One widget, layout inside layout, layout inside layout inside layout
{
+#ifdef QT_DEBUG
QTest::ignoreMessage(QtWarningMsg, "QGraphicsLayout::addChildLayoutItem: QGraphicsWidget \"\""
" in wrong parent; moved to correct parent");
+#endif
QGraphicsWidget *widget = new QGraphicsWidget;
TheAnchorLayout *layout = new TheAnchorLayout();
widget->setLayout(layout);