diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2011-10-17 13:03:58 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-17 13:59:29 +0200 |
commit | f713037bf192748837f6075b2c60b19ccf3f9ab1 (patch) | |
tree | 3fda988997268c2a96729b1a7baa96583d453397 /tests/auto/declarative/qsgitem2/tst_qsgitem.cpp | |
parent | 830c69803e45daad2115498a8d5a6faeb75fe2a5 (diff) |
Fix coding style issues
Avoid Qt Sanity Bot noise when these files are moved.
Change-Id: I714e949837909883fe7e387ae336d2ffc4a1912b
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Diffstat (limited to 'tests/auto/declarative/qsgitem2/tst_qsgitem.cpp')
-rw-r--r-- | tests/auto/declarative/qsgitem2/tst_qsgitem.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/declarative/qsgitem2/tst_qsgitem.cpp b/tests/auto/declarative/qsgitem2/tst_qsgitem.cpp index fd1f9cd373..08a3071e51 100644 --- a/tests/auto/declarative/qsgitem2/tst_qsgitem.cpp +++ b/tests/auto/declarative/qsgitem2/tst_qsgitem.cpp @@ -97,7 +97,7 @@ T *findItem(QSGItem *parent, const QString &objectName) //qDebug() << parent->QSGItem::children().count() << "children"; for (int i = 0; i < parent->childItems().count(); ++i) { QSGItem *item = qobject_cast<QSGItem*>(parent->childItems().at(i)); - if(!item) + if (!item) continue; //qDebug() << "try" << item; if (mo.cast(item) && (objectName.isEmpty() || item->objectName() == objectName)) @@ -496,7 +496,7 @@ void tst_QSGItem::layoutMirroring() QCOMPARE(childPrivate(rootItem, "inheritedMirror2")->inheritedLayoutMirror, true); QCOMPARE(childPrivate(rootItem, "mirrored1")->inheritedLayoutMirror, true); QCOMPARE(childPrivate(rootItem, "notMirrored1")->inheritedLayoutMirror, true); - + // // dynamic parenting // @@ -526,7 +526,7 @@ void tst_QSGItem::layoutMirroring() childItem2->setParentItem(parentItem2); QCOMPARE(QSGItemPrivate::get(childItem2)->effectiveLayoutMirror, false); QCOMPARE(QSGItemPrivate::get(childItem2)->inheritMirrorFromParent, false); - + delete parentItem1; delete parentItem2; } @@ -1024,7 +1024,7 @@ void tst_QSGItem::transforms() void tst_QSGItem::childrenProperty() { QDeclarativeComponent component(&engine, TESTDATA("childrenProperty.qml")); - + QObject *o = component.create(); QVERIFY(o != 0); @@ -1039,7 +1039,7 @@ void tst_QSGItem::childrenProperty() void tst_QSGItem::resourcesProperty() { QDeclarativeComponent component(&engine, TESTDATA("resourcesProperty.qml")); - + QObject *o = component.create(); QVERIFY(o != 0); |