Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Default image scaling behaviour has changed; fix autotest.
The default image scaling behaviour has changed in qtdeclarative. This
change fixes the autotest to conform to fixed ratio scaling.

Change-Id: I9c901825295fb04cab74c46f61696c5274ddd943
Reviewed-by: Martin Jones <martin.jones@nokia.com>
  • Loading branch information
Toby Tomkins authored and Qt by Nokia committed Mar 13, 2012
1 parent fa9fcf2 commit d541fdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/auto/quick/qquickimage/tst_qquickimage.cpp
Expand Up @@ -369,11 +369,11 @@ void tst_qquickimage::svg()
QQuickImage *obj = qobject_cast<QQuickImage*>(component.create());
QVERIFY(obj != 0);
QCOMPARE(obj->width(), 300.0);
QCOMPARE(obj->height(), 300.0);
QCOMPARE(obj->height(), 273.0);
obj->setSourceSize(QSize(200,200));

QCOMPARE(obj->width(), 200.0);
QCOMPARE(obj->height(), 200.0);
QCOMPARE(obj->height(), 182.0);
delete obj;
}

Expand Down

0 comments on commit d541fdc

Please sign in to comment.