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
Tobias Hunger
qt-creator
Commits
073feb6e
Commit
073feb6e
authored
Dec 06, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.propertyEditor: only show writable properties
parent
bc47638c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
View file @
073feb6e
...
...
@@ -588,7 +588,7 @@ QString templateGeneration(NodeMetaInfo type, NodeMetaInfo superType, const QmlO
if
(
typeName
==
QLatin1String
(
"alias"
)
&&
objectNode
.
isValid
())
typeName
=
objectNode
.
instanceType
(
name
);
if
(
!
superType
.
hasProperty
(
name
))
{
if
(
!
superType
.
hasProperty
(
name
)
&&
type
.
propertyIsWritable
(
name
)
)
{
if
(
typeName
==
"int"
)
{
qmlTemplate
+=
QString
(
QLatin1String
(
"IntEditor { backendValue: backendValues.%2
\n
caption:
\"
%1
\"\n
baseStateFlag: isBaseState
\n
slider: false
\n
}"
...
...
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