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
221fc011
Commit
221fc011
authored
Feb 12, 2010
by
Roberto Raggi
Browse files
Compile.
parent
9245c7ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libs/qmljs/qmljsinterpreter.cpp
View file @
221fc011
...
...
@@ -231,8 +231,8 @@ void QmlObjectValue::processMembers(MemberProcessor *processor) const
const
Value
*
QmlObjectValue
::
propertyValue
(
const
QMetaProperty
&
prop
)
const
{
if
(
QmlMetaType
::
isObject
(
prop
.
userType
()))
{
QmlType
*
qmlPropertyType
=
QmlMetaType
::
qmlType
(
QmlMetaType
::
metaObjectForType
(
prop
.
userType
())
)
;
if
(
QmlMetaType
::
is
Q
Object
(
prop
.
userType
()))
{
QmlType
*
qmlPropertyType
=
QmlMetaType
::
qmlType
(
prop
.
userType
());
if
(
qmlPropertyType
&&
!
qmlPropertyType
->
qmlTypeName
().
isEmpty
())
{
QString
typeName
=
qmlPropertyType
->
qmlTypeName
();
...
...
src/plugins/qmldesigner/core/instances/objectnodeinstance.cpp
View file @
221fc011
...
...
@@ -525,7 +525,7 @@ void ObjectNodeInstance::updateObjectSignals(QObject *object)
int
transformSignalIndex
=
QGraphicsObject
::
staticMetaObject
.
indexOfSignal
(
"xChanged()"
);
// iterate over all proeprties and find the object
for
(
int
propertyIndex
=
QObject
::
staticMetaObject
.
propertyCount
();
propertyIndex
<
object
->
metaObject
()
->
propertyCount
();
propertyIndex
++
)
{
if
(
QmlMetaType
::
isObject
(
object
->
metaObject
()
->
property
(
propertyIndex
).
userType
()))
{
if
(
QmlMetaType
::
is
Q
Object
(
object
->
metaObject
()
->
property
(
propertyIndex
).
userType
()))
{
QObject
*
propertyObject
=
QmlMetaType
::
toQObject
(
object
->
metaObject
()
->
property
(
propertyIndex
).
read
(
object
));
if
(
propertyObject
)
{
int
signalIndex
=
-
1
;
...
...
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