summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicswidget
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2010-03-18 02:10:34 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2010-03-19 05:01:45 (GMT)
commit79a02c86c445e50630bcae62a4505f212281ec8b (patch)
tree81cbdc86660b86bf17ce6373802f29483797c0a0 /tests/auto/qgraphicswidget
parent78e1a866ba5d594233db80f7aab88331db237d3a (diff)
downloadQt-79a02c86c445e50630bcae62a4505f212281ec8b.zip
Qt-79a02c86c445e50630bcae62a4505f212281ec8b.tar.gz
Qt-79a02c86c445e50630bcae62a4505f212281ec8b.tar.bz2
Add NOTIFY to size property so QML bindings are working fine.
Just add the notify + the signal. Task-number:QTBUG-8277 Reviewed-by:yoann
Diffstat (limited to 'tests/auto/qgraphicswidget')
-rw-r--r--tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp b/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp
index 4a874be..91fcf50 100644
--- a/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp
+++ b/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp
@@ -765,11 +765,13 @@ void tst_QGraphicsWidget::geometry()
{
SubQGraphicsWidget widget;
QCOMPARE(widget.geometry(), QRectF(widget.pos(), widget.size()));
-
+ QSignalSpy spy(&widget, SIGNAL(sizeChanged()));
QFETCH(QPointF, pos);
QFETCH(QSizeF, size);
widget.setPos(pos);
widget.resize(size);
+ if (!size.isNull())
+ QCOMPARE(spy.count(), 1);
QCOMPARE(widget.geometry(), QRectF(pos, size));
}