diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2010-03-18 03:10:34 +0100 |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2010-03-19 06:01:45 +0100 |
commit | 79a02c86c445e50630bcae62a4505f212281ec8b (patch) | |
tree | 81cbdc86660b86bf17ce6373802f29483797c0a0 /tests/auto/qgraphicswidget | |
parent | 78e1a866ba5d594233db80f7aab88331db237d3a (diff) |
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.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp b/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp index 4a874becf9..91fcf50b1e 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)); } |