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
Tobias Hunger
qt-creator
Commits
033a094a
Commit
033a094a
authored
Jan 11, 2010
by
Marco Bubke
Browse files
Fix id removing
Task-number: BAUHAUS-267
parent
c7b719c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/core/instances/objectnodeinstance.cpp
View file @
033a094a
...
@@ -152,13 +152,13 @@ void ObjectNodeInstance::setNodeInstance(NodeInstanceView *view)
...
@@ -152,13 +152,13 @@ void ObjectNodeInstance::setNodeInstance(NodeInstanceView *view)
void
ObjectNodeInstance
::
setId
(
const
QString
&
id
)
void
ObjectNodeInstance
::
setId
(
const
QString
&
id
)
{
{
object
()
->
setObjectName
(
id
);
if
(
!
id
.
isEmpty
())
{
if
(
!
id
.
isEmpty
())
{
context
()
->
engine
()
->
rootContext
()
->
setContextProperty
(
id
,
object
());
// will also force refresh of all bindings
context
()
->
engine
()
->
rootContext
()
->
setContextProperty
(
id
,
object
());
// will also force refresh of all bindings
}
else
{
}
else
if
(
!
object
()
->
objectName
().
isEmpty
())
{
context
()
->
engine
()
->
rootContext
()
->
setContextProperty
(
id
,
0
);
context
()
->
engine
()
->
rootContext
()
->
setContextProperty
(
object
()
->
objectName
()
,
0
);
}
}
object
()
->
setObjectName
(
id
);
}
}
bool
ObjectNodeInstance
::
isQmlGraphicsItem
()
const
bool
ObjectNodeInstance
::
isQmlGraphicsItem
()
const
...
...
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