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
c8b3d53f
Commit
c8b3d53f
authored
Feb 02, 2011
by
Marco Bubke
Browse files
QmlDesigner.MetaInfo: Hotfix last hotfix
Last fix don't work expected. Must be refactored back.
parent
0326454e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp
View file @
c8b3d53f
...
...
@@ -128,37 +128,6 @@ private:
QList
<
PropertyInfo
>
m_properties
;
};
class
HasValueProcessor
:
public
Interpreter
::
MemberProcessor
{
public:
HasValueProcessor
(
const
Interpreter
::
Value
*
compareValue
)
:
MemberProcessor
(),
m_compareValue
(
compareValue
),
m_isInMembers
(
false
)
{}
virtual
bool
processProperty
(
const
QString
&
/*name*/
,
const
Interpreter
::
Value
*
value
)
{
if
(
value
==
m_compareValue
)
{
m_isInMembers
=
true
;
return
false
;
}
return
true
;
}
bool
hasValue
()
const
{
return
m_isInMembers
;
}
private:
const
Interpreter
::
Value
*
m_compareValue
;
bool
m_isInMembers
;
};
static
inline
bool
isValueType
(
const
QString
&
type
)
{
QStringList
objectValuesList
;
...
...
@@ -825,9 +794,7 @@ void NodeMetaInfoPrivate::setupPrototypes()
description
.
className
=
qmlValue
->
packageName
()
+
"/"
+
description
.
className
;
}
HasValueProcessor
hasValueProcessor
(
ov
);
lookupContext
()
->
context
()
->
typeEnvironment
(
document
())
->
processMembers
(
&
hasValueProcessor
);
if
(
hasValueProcessor
.
hasValue
())
if
(
lookupContext
()
->
context
()
->
lookupType
(
document
(),
QStringList
()
<<
ov
->
className
()))
m_prototypes
.
append
(
description
);
}
}
...
...
Write
Preview
Markdown
is supported
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