Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
6c1606a3
Commit
6c1606a3
authored
Mar 29, 2010
by
Erik Verbruggen
Browse files
More testcase fixing.
parent
fd8581b0
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
tests/auto/qml/qmldesigner/common/statichelpers.cpp
View file @
6c1606a3
...
...
@@ -49,13 +49,20 @@
// }
// }
static
ModelNode
addChild
Node
(
const
ModelNode
&
parentNode
,
const
QString
&
typeName
,
int
major
,
int
minor
,
const
QString
&
parentProperty
)
static
ModelNode
add
NodeList
Child
(
const
ModelNode
&
parentNode
,
const
QString
&
typeName
,
int
major
,
int
minor
,
const
QString
&
parentProperty
)
{
ModelNode
newNode
=
parentNode
.
view
()
->
createModelNode
(
typeName
,
major
,
minor
);
parentNode
.
nodeListProperty
(
parentProperty
).
reparentHere
(
newNode
);
return
newNode
;
}
static
ModelNode
addNodeChild
(
const
ModelNode
&
parentNode
,
const
QString
&
typeName
,
int
major
,
int
minor
,
const
QString
&
parentProperty
)
{
ModelNode
newNode
=
parentNode
.
view
()
->
createModelNode
(
typeName
,
major
,
minor
);
parentNode
.
nodeProperty
(
parentProperty
).
reparentHere
(
newNode
);
return
newNode
;
}
static
QString
bareTemplate
(
"import Qt 4.6
\n
"
"Item { id: parentItem;"
" %1"
...
...
tests/auto/qml/qmldesigner/coretests/testcore.cpp
View file @
6c1606a3
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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