Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
b40bdf8a
Commit
b40bdf8a
authored
Mar 30, 2010
by
Marco Bubke
Committed by
Kai Koehne
Mar 31, 2010
Browse files
Change test from parent to parentItem
parent
ed6d283c
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/auto/qml/qmldesigner/coretests/testcore.cpp
View file @
b40bdf8a
...
...
@@ -31,6 +31,7 @@
#include <QScopedPointer>
#include <QLatin1String>
#include <QGraphicsObject>
#include <metainfo.h>
#include <model.h>
...
...
@@ -1013,8 +1014,8 @@ void TestCore::testBasicOperationsWithView()
QVERIFY
(
childInstance
.
isValid
());
QVERIFY
(
childInstance
.
isQmlGraphicsItem
());
QVERIFY
(
childInstance2
.
testHandle
()
->
parent
()
==
childInstance
.
testHandle
());
QVERIFY
(
childInstance
.
testHandle
()
->
parent
()
==
rootInstance
.
testHandle
());
QVERIFY
(
qobject_cast
<
QGraphicsObject
*>
(
childInstance2
.
testHandle
()
)
->
parent
Item
()
->
toGraphicsObject
()
==
childInstance
.
testHandle
());
QVERIFY
(
qobject_cast
<
QGraphicsObject
*>
(
childInstance
.
testHandle
()
)
->
parent
Item
()
->
toGraphicsObject
()
==
rootInstance
.
testHandle
());
QCOMPARE
(
childInstance
.
size
().
width
(),
0.0
);
QCOMPARE
(
childInstance
.
size
().
height
(),
0.0
);
...
...
@@ -1051,8 +1052,8 @@ void TestCore::testBasicOperationsWithView()
QVERIFY
(
childInstance
.
isValid
());
QVERIFY
(
childInstance
.
isQmlGraphicsItem
());
QVERIFY
(
childInstance2
.
testHandle
()
->
parent
()
==
rootInstance
.
testHandle
());
QVERIFY
(
childInstance
.
testHandle
()
->
parent
()
==
rootInstance
.
testHandle
());
QVERIFY
(
qobject_cast
<
QGraphicsObject
*>
(
childInstance2
.
testHandle
()
)
->
parent
Item
()
->
toGraphicsObject
()
==
rootInstance
.
testHandle
());
QVERIFY
(
qobject_cast
<
QGraphicsObject
*>
(
childInstance
.
testHandle
()
)
->
parent
Item
()
->
toGraphicsObject
()
==
rootInstance
.
testHandle
());
QCOMPARE
(
childInstance
.
size
().
width
(),
0.0
);
QCOMPARE
(
childInstance
.
size
().
height
(),
0.0
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment