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
b21b8a7a
Commit
b21b8a7a
authored
Sep 23, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.NodeInstances: implement doComponentComplete()
We have to call classBegin() on creation.
parent
a31ac153
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/designercore/instances/nodeinstance.cpp
View file @
b21b8a7a
...
...
@@ -646,7 +646,7 @@ void NodeInstance::registerDeclarativeTypes()
void
NodeInstance
::
doComponentComplete
()
{
m_nodeInstance
->
doComponentComplete
();
}
QString
NodeInstance
::
id
()
const
...
...
src/plugins/qmldesigner/designercore/instances/qmlgraphicsitemnodeinstance.cpp
View file @
b21b8a7a
...
...
@@ -80,6 +80,8 @@ QmlGraphicsItemNodeInstance::Pointer QmlGraphicsItemNodeInstance::create(const N
Pointer
instance
(
new
QmlGraphicsItemNodeInstance
(
qmlGraphicsItem
,
objectPair
.
second
));
static_cast
<
QDeclarativeParserStatus
*>
(
qmlGraphicsItem
)
->
classBegin
();
if
(
objectToBeWrapped
)
instance
->
setDeleteHeldInstance
(
false
);
// the object isn't owned
...
...
@@ -288,8 +290,11 @@ void QmlGraphicsItemNodeInstance::resetVertical()
void
QmlGraphicsItemNodeInstance
::
doComponentComplete
()
{
if
(
qmlGraphicsItem
())
if
(
qmlGraphicsItem
())
{
if
(
static_cast
<
QDeclarativeItemPrivate
*>
(
QGraphicsItemPrivate
::
get
(
qmlGraphicsItem
()))
->
componentComplete
)
return
;
static_cast
<
QDeclarativeParserStatus
*>
(
qmlGraphicsItem
())
->
componentComplete
();
}
}
int
QmlGraphicsItemNodeInstance
::
penWidth
()
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