summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicswidget
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2010-03-30 01:01:27 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2010-03-30 01:04:10 (GMT)
commit87fae30fc63460e0ed2cc98f55a22e28d7520311 (patch)
treea0190ae9a25e6697fba1708ee13a3cff6964bd8b /tests/auto/qgraphicswidget
parent6d72f18c1e2fc5e88841af2d6c8c10bd2576ea58 (diff)
downloadQt-87fae30fc63460e0ed2cc98f55a22e28d7520311.zip
Qt-87fae30fc63460e0ed2cc98f55a22e28d7520311.tar.gz
Qt-87fae30fc63460e0ed2cc98f55a22e28d7520311.tar.bz2
Add a a layout property in QGraphicsWidget.
Reviewed-by:michael brasser
Diffstat (limited to 'tests/auto/qgraphicswidget')
-rw-r--r--tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp b/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp
index 5a3a54c..b78ef26 100644
--- a/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp
+++ b/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp
@@ -942,6 +942,7 @@ 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));
@@ -950,7 +951,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);
}