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
Marco Bubke
flatpak-qt-creator
Commits
bbaf3b18
Commit
bbaf3b18
authored
Apr 07, 2010
by
Marco Bubke
Committed by
Kai Koehne
Apr 08, 2010
Browse files
Check if the meta object is created
parent
3bdabea8
Changes
1
Show whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/core/instances/objectnodeinstance.cpp
View file @
bbaf3b18
...
...
@@ -185,6 +185,8 @@ void ObjectNodeInstance::initializePropertyWatcher(const ObjectNodeInstance::Poi
}
}
}
}
else
{
qWarning
()
<<
"dynamic properties are not supported for components"
;
}
m_signalSpy
.
setObjectNodeInstance
(
objectNodeInstance
);
...
...
@@ -780,6 +782,12 @@ static bool metaObjectHasNotPropertyName(NodeInstanceMetaObject *metaObject, con
void
ObjectNodeInstance
::
createDynamicProperty
(
const
QString
&
name
,
const
QString
&
/*typeName*/
)
{
if
(
m_metaObject
==
0
)
{
qWarning
()
<<
"dynamic properties are not supported for components"
;
return
;
}
if
(
metaObjectHasNotPropertyName
(
m_metaObject
,
name
))
m_metaObject
->
createNewProperty
(
name
);
}
...
...
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