summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2010-03-31 00:17:28 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2010-03-31 00:17:28 (GMT)
commit4e4c0055d59978850796ff8c1b5015e17459e8d2 (patch)
treeed5d40319fd78dae008dfb740deab0d82aa9ac90 /tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp
parentf17e398f661d903a9fda0bfb3725fd881656e9d4 (diff)
downloadQt-4e4c0055d59978850796ff8c1b5015e17459e8d2.zip
Qt-4e4c0055d59978850796ff8c1b5015e17459e8d2.tar.gz
Qt-4e4c0055d59978850796ff8c1b5015e17459e8d2.tar.bz2
Revert "Add a a layout property in QGraphicsWidget."
This reverts commit 87fae30fc63460e0ed2cc98f55a22e28d7520311. This drop the support of QML on top of 4.6
Diffstat (limited to 'tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp')
-rw-r--r--tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp b/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp
index b78ef26..5a3a54c 100644
--- a/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp
+++ b/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp
@@ -942,7 +942,6 @@ void tst_QGraphicsWidget::layout()
layout->addItem(item);
children.append(item);
}
- QSignalSpy spy(&widget, SIGNAL(layoutChanged()));
widget.setLayout(layout);
QTRY_COMPARE(widget.layout(), static_cast<QGraphicsLayout*>(layout));
@@ -951,7 +950,7 @@ void tst_QGraphicsWidget::layout()
QCOMPARE(item->parentWidget(), (QGraphicsWidget *)&widget);
QVERIFY(item->geometry() != QRectF(0, 0, -1, -1));
}
- QCOMPARE(spy.count(), 1);
+
// don't crash
widget.setLayout(0);
}