diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-09-18 10:25:14 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-09-18 10:35:49 (GMT) |
commit | 6bd75e56853acce0b9d9fcc6fc162c546d217ab0 (patch) | |
tree | 49bfea660a6fccc05e656886af2489b08b57b214 /tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp | |
parent | d01cc3cfe24394159b6a0d724ab6d8d59912365a (diff) | |
download | Qt-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/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp')
-rw-r--r-- | tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp | 5 |
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); |