summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlstateoperations.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-10 07:34:31 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-10 07:34:31 (GMT)
commita3627a496c3b7c6c007fe01cabcba65bc073f0a7 (patch)
tree2c2bc4db3ce82308d5657321effaf29f3c07e211 /src/declarative/util/qmlstateoperations.cpp
parentbdfccf48dc66a49a8adc3a160d6a873bf2b48adf (diff)
downloadQt-a3627a496c3b7c6c007fe01cabcba65bc073f0a7.zip
Qt-a3627a496c3b7c6c007fe01cabcba65bc073f0a7.tar.gz
Qt-a3627a496c3b7c6c007fe01cabcba65bc073f0a7.tar.bz2
Return qmlInfo(obj) << syntax.
Fixes QTBUG-5480
Diffstat (limited to 'src/declarative/util/qmlstateoperations.cpp')
-rw-r--r--src/declarative/util/qmlstateoperations.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/declarative/util/qmlstateoperations.cpp b/src/declarative/util/qmlstateoperations.cpp
index 2fca002..03337cb 100644
--- a/src/declarative/util/qmlstateoperations.cpp
+++ b/src/declarative/util/qmlstateoperations.cpp
@@ -75,7 +75,7 @@ void QmlParentChangePrivate::doChange(QmlGraphicsItem *targetParent, QmlGraphics
bool ok;
const QTransform &transform = target->itemTransform(targetParent, &ok);
if (transform.type() >= QTransform::TxShear || !ok) {
- qmlInfo(QObject::tr("Unable to preserve appearance under complex transform"), q);
+ qmlInfo(q) << QObject::tr("Unable to preserve appearance under complex transform");
}
qreal scale = 1;
@@ -84,21 +84,21 @@ void QmlParentChangePrivate::doChange(QmlGraphicsItem *targetParent, QmlGraphics
if (transform.m11() == transform.m22())
scale = transform.m11();
else {
- qmlInfo(QObject::tr("Unable to preserve appearance under non-uniform scale"), q);
+ qmlInfo(q) << QObject::tr("Unable to preserve appearance under non-uniform scale");
ok = false;
}
} else if (transform.type() == QTransform::TxRotate) {
if (transform.m11() == transform.m22())
scale = qSqrt(transform.m11()*transform.m11() + transform.m12()*transform.m12());
else {
- qmlInfo(QObject::tr("Unable to preserve appearance under non-uniform scale"), q);
+ qmlInfo(q) << QObject::tr("Unable to preserve appearance under non-uniform scale");
ok = false;
}
if (scale != 0)
rotation = atan2(transform.m12()/scale, transform.m11()/scale) * 180/M_PI;
else {
- qmlInfo(QObject::tr("Unable to preserve appearance under scale of 0"), q);
+ qmlInfo(q) << QObject::tr("Unable to preserve appearance under scale of 0");
ok = false;
}
}